xxxxxxxxxx
33
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
colorMode(HSB, 360);
noStroke();
iniRadius = 800;
angle = 0;
//noLoop();
}
function draw() {
background(0);
radius = iniRadius;
n = 1;
translate(width/2, height/2);
while(radius > 10) {
rotate(angle);
fill(300-n*5, 360, 20+n*20);
ellipse(0, 0, radius);
translate(-radius*0.1, 0);
radius = radius*0.8;
n++
}
//iniRadius++;
angle++;
}