Original code before I touched or made adjustments to
int i = 50;
int step = 3;
void setup() {
background(255);
size(400, 400);
smooth();
frameRate(30);
strokeWeight(8);
noFill();
}
void draw() {
background(255);
translate(width/2, height/2);
for (n = 0; n < 128; n++) {
stroke(0, n*2, 256-n, n/2);
rotate(radians(0 + (n * 15)));
ellipse(30 + (sin(radians(i * 12))), 25 - i/2, 100, 75 + i);
}
if (i > 160) {
step *= -1;
}
if (i < -25) {
step *= -1;
}
i+=step;
Thursday, February 10, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment