mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Improve RadialRainbows example.
This commit is contained in:
parent
965f49d156
commit
c622d1419a
1 changed files with 4 additions and 3 deletions
|
@ -9,10 +9,11 @@
|
|||
var point = view.center;
|
||||
|
||||
var colors = [];
|
||||
var cycles = 4;
|
||||
for (var i = 0, l = 60; i < l; i++) {
|
||||
var color = new RGBColor(1, 0, 0);
|
||||
var cycles = 4;
|
||||
color.hue = i / l * cycles * 360;
|
||||
var brightness = 1 - (i / l) * 1.5;
|
||||
var hue = i / l * cycles * 360;
|
||||
var color = new HSBColor(hue, 1, brightness);
|
||||
colors.push(color);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue