mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Switch back to only one Gradient constructor for both linear and radial Gradients.
This commit is contained in:
parent
93437010aa
commit
9cdc4b9372
12 changed files with 41 additions and 65 deletions
|
@ -58,7 +58,7 @@ test('Empty Path', function() {
|
|||
|
||||
test('Gradients', function() {
|
||||
var path = new Path.Circle([100, 100], 40);
|
||||
var gradient = new RadialGradient('yellow', 'red', 'black');
|
||||
var gradient = new Gradient(['yellow', 'red', 'black'], true);
|
||||
var from = path.position;
|
||||
var to = path.bounds.rightCenter;
|
||||
var gradientColor = new GradientColor(gradient, from, to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue