2020程式設計二A
2020年4月16日 星期四
week08
自動張合:
void setup(){
size(300,200);
}
int angle=45;
void draw(){
background(255);
angle= (frameCount*2)%120;
if(angle>60)angle=120-angle;
arc(100,100, 100,100, radians(angle),radians(360-angle), PIE);
}
變色:
fill(255,251,0);
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言