mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Adjust GradientColor example.
This commit is contained in:
parent
d688faf805
commit
1bca7f4795
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ var GradientColor = this.GradientColor = Color.extend({
|
|||
* // and fill it with a radial gradient color:
|
||||
* var path = new Path.Circle(view.center, view.bounds.height * 0.4);
|
||||
*
|
||||
* var gradient = new Gradient(['yellow', 'red', 'blue'], 'radial');
|
||||
* var gradient = new Gradient(['yellow', 'red', 'black'], 'radial');
|
||||
* var from = view.center;
|
||||
* var to = view.bounds.bottomRight;
|
||||
* var gradientColor = new GradientColor(gradient, from, to);
|
||||
|
|
Loading…
Reference in a new issue