mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-13 22:48:54 -04:00
Merge GradientColor into Color.
Work in progress.
This commit is contained in:
parent
380fce3946
commit
5209e97c8d
15 changed files with 154 additions and 51 deletions
examples/Scripts
|
@ -41,7 +41,7 @@
|
|||
var gradient = new Gradient(colors, true);
|
||||
var from = center;
|
||||
var to = center + vector;
|
||||
var gradientColor = new GradientColor(gradient, from, to);
|
||||
var gradientColor = new Color(gradient, from, to);
|
||||
path.fillColor = path.strokeColor = gradientColor;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue