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