2020年5月7日 星期四

week11





程式碼:
void setup(){
  size(300,500);
}
int N=5;
void draw(){
    background(0);
    int R=300/N,w=R/2;
    for(int x=0;x<N;x++){
       for(int y=0;y<N;y++){
         ellipse(0+w+x*R, 200+w+y*R,R,R);
       }
    }
}

沒有留言:

張貼留言