mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Small simplification in RadialRainbows example.
This commit is contained in:
parent
c875953198
commit
277cf541de
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
var color = new RGBColor(1, 0, 0);
|
var color = new RGBColor(1, 0, 0);
|
||||||
var cycles = 4;
|
var cycles = 4;
|
||||||
color.hue = i / l * cycles * 360;
|
color.hue = i / l * cycles * 360;
|
||||||
colors.push([color, i / (l - 1)]);
|
colors.push(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
var gradient = new Gradient(colors, 'radial');
|
var gradient = new Gradient(colors, 'radial');
|
||||||
|
|
Loading…
Reference in a new issue