
size(300,500);
ellipse(50,200+50, 100,100);
ellipse(50+100,200+50,100,100);
ellipse(50+100+100,200+50,100,100);
ellipse(50,200+50+100,100,100);
ellipse(50+100,200+50+100,100,100);
ellipse(50+100+100,200+50+100,100,100);
ellipse(50,200+50+100+100, 100,100);
ellipse(50+100,200+50+100+100,100,100);
ellipse(50+100+100,200+50+100+100,100,100);

size(300,500);
for(int y=0;y<3;y++){
for(int x=0;x<3;x++){
ellipse(50+x*100,200+50+y*100,100,100);
}
}

size(300,500);
int n=5;
int R=300/n, w=R/2;
for(int y=0;y<n;y++){
for(int x=0;x<n;x++){
ellipse(w+x*R,200+w+y*R, R,R);
}
}

void setup(){
size(300,500);
}
int n=5;
int R=300/n,w=R/2,RR=0;
void draw(){
for(int y=0;y<n;y++){
for(int x=0;x<n;x++){
ellipse(w+x*R,200+w+y*R, RR,RR);
}
}
RR++;
}

void setup(){
size(300,500);
}
int n=3, RR=0;
void draw(){
background(0);
int R=300/n,w=R/2;
for(int y=0;y<n;y++){
for(int x=0;x<n;x++){
ellipse(w+x*R,200+w+y*R, RR,RR);
}
}
if(RR<R)RR+=R/30;
else{
n++;
RR=0;
}
}
沒有留言:
張貼留言