xxxxxxxxxx
int i=0;
void setup() {
size(500, 500);
background(0);
frameRate(30);
noStroke();
fill(255);
translate(width/2,height/2);
colorMode(HSB,360);
smooth();
/*for (int i=0;i<=360;i+=.5){
fill(360-i,255,255,70);
rect(0,0,i*.5,i*.5);
rotate(radians(i));
delay(100);
}*/
}
void draw() {
if(i<=360){
translate(width/2,height/2);
rotate(radians(i));
fill((360-i),255,255,120);
rect(0,0,i*.5,i*.5);
i+=20;
}
//rect(0,0,50,50);
}