Improve RadialRainbows example.

This commit is contained in:
Jonathan Puckey 2011-06-29 13:30:04 +02:00
parent 965f49d156
commit c622d1419a

View file

@ -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);
}