Switch back to only one Gradient constructor for both linear and radial Gradients.

This commit is contained in:
Jürg Lehni 2013-04-08 20:52:21 -07:00
parent 93437010aa
commit 9cdc4b9372
12 changed files with 41 additions and 65 deletions

View file

@ -58,7 +58,7 @@ test('Empty Path', function() {
test('Gradients', function() {
var path = new Path.Circle([100, 100], 40);
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);