This is how the code looks after I made adjustments to it
int i = 50;
int step = 3;
void setup() {
background(800);
size(400, 400);
smooth();
frameRate(40);
strokeWeight(10);
noFill();
}
void draw() {
background(600);
translate(width/3, height/3);
for (n = 0; n < 130; n++) {
stroke(0, n*4, 300-n, n/2);
rotate(radians(0 + (n * 22)));
ellipse(30 + (sin(radians(i * 14))), 27 - i/4, 102, 80 + i);
}
if (i > 180) {
step *= -2;
}
if (i < -28) {
step *= -2;
}
i+=step;
}
Thursday, February 10, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment