Allow implicit Gradient declaration in Color object literals.

This commit is contained in:
Jürg Lehni 2013-04-09 09:27:46 -07:00
parent 0d125e1a12
commit 9d0b9dc4c6
2 changed files with 18 additions and 4 deletions
examples/JSON

View file

@ -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
}