Saturday, June 06, 2009
Gradient Rotating Square 7
// just type here
// and click "submit" when done
int i = 0;
void setup()
{
background(255);
smooth();
size(600,600);
}
void draw()
{
i++;
noStroke();
fill(100 + i%55 + random(1,100), 100 + i%55 + random(1,100), 100 + i%55 + random(1,100));
translate(300 + i%300 / 2,300 + i%300 / 2);
rotate(i/100);
translate(i%300 / 2,i%300 / 2);
rect(0, 0, i%300, i%300);
}
void mousePressed()
{
background(255);
}
// and click "submit" when done
int i = 0;
void setup()
{
background(255);
smooth();
size(600,600);
}
void draw()
{
i++;
noStroke();
fill(100 + i%55 + random(1,100), 100 + i%55 + random(1,100), 100 + i%55 + random(1,100));
translate(300 + i%300 / 2,300 + i%300 / 2);
rotate(i/100);
translate(i%300 / 2,i%300 / 2);
rect(0, 0, i%300, i%300);
}
void mousePressed()
{
background(255);
}
comments
loading...
sign in to Add a comment: