Tuesday, February 02, 2010
line play
void setup() {
size(800,400);
background(255);
smooth();
strokeWeight(1);
translate(width/2, height/2+20);
scale(0.4);
rotate(HALF_PI/2);
for (int i = 0; i < 200; i++) {
line(width*2/3*cos(i), -height*sin(i), width*2/3*cos(i), -height*cos(i));
}
}
size(800,400);
background(255);
smooth();
strokeWeight(1);
translate(width/2, height/2+20);
scale(0.4);
rotate(HALF_PI/2);
for (int i = 0; i < 200; i++) {
line(width*2/3*cos(i), -height*sin(i), width*2/3*cos(i), -height*cos(i));
}
}
comments

Add a comment: