mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-13 05:31:04 -04:00
Allow implicit Gradient declaration in Color object literals.
This commit is contained in:
parent
0d125e1a12
commit
9d0b9dc4c6
2 changed files with 18 additions and 4 deletions
examples/JSON
|
@ -8,7 +8,9 @@
|
|||
<script type="text/paperscript" canvas="canvas1">
|
||||
var path = new Path.Circle(view.center, view.bounds.height * 0.4);
|
||||
path.fillColor = {
|
||||
gradient: [['yellow', 'red', 'black'], true],
|
||||
// gradient: [['yellow', 'red', 'black'], true],
|
||||
stops: ['yellow', 'red', 'black'],
|
||||
radial: true,
|
||||
origin: path.position,
|
||||
destination: path.bounds.rightCenter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue