mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-15 14:40:53 -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
examples/JSON
|
@ -7,7 +7,7 @@
|
|||
<script type="text/javascript" src="../../dist/paper.js"></script>
|
||||
<script type="text/paperscript" canvas="canvas1">
|
||||
var path = new Path.Circle(view.center, view.bounds.height * 0.4);
|
||||
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