1.期中題目預想:launchpad 簡易版 +等化器
void setup(){
size(600,600);
}
void draw(){
background(255);
for(int x=0;x<=600;x+=50){
for(int y=0;y<=600;y+=50){
float a=5*(frameCount+x/8+y/8)/180.0*3.14159;
noFill(); ellipse(x,y,40,40);
fill(0); ellipse(x+20*cos(a),y+20*sin(a),8,8);
}
}
}
沒有留言:
張貼留言