Thursday, December 05, 2013
Spider Web
// just type here
// and click "save" when your done
void setup() {
size(500,500);
smooth();
}
void draw() {
background(128,128,128);
fill(128,128,128);
strokeWeight(1);
translate(250,250);
rotate(frameCount);
for (int i=0; i<300; i=i+20) {
ellipse(0,0+i, i,i);
}
for (int i=0; i<300; i=i+30) {
ellipse(0,0-i, i,i);
}
fill(250,0,0);
ellipse(0,0,10,10);
line(-200,200,200,200); line(0,180,0,220); line(-200,200,200,200);
line(0,180,0,220);
line(-200,-200,200,-200);
line(0,-180,0,-220);
line(-180,180,180,180); line(0,160,0,200); line(-180,180,180,180);
line(0,160,0,200);
line(-180,-180,180,-180);
line(0,-160,0,-200);
}
// and click "save" when your done
void setup() {
size(500,500);
smooth();
}
void draw() {
background(128,128,128);
fill(128,128,128);
strokeWeight(1);
translate(250,250);
rotate(frameCount);
for (int i=0; i<300; i=i+20) {
ellipse(0,0+i, i,i);
}
for (int i=0; i<300; i=i+30) {
ellipse(0,0-i, i,i);
}
fill(250,0,0);
ellipse(0,0,10,10);
line(-200,200,200,200); line(0,180,0,220); line(-200,200,200,200);
line(0,180,0,220);
line(-200,-200,200,-200);
line(0,-180,0,-220);
line(-180,180,180,180); line(0,160,0,200); line(-180,180,180,180);
line(0,160,0,200);
line(-180,-180,180,-180);
line(0,-160,0,-200);
}
comments

Add a comment: