企鵝太簡單了,來畫OPEN醬如何呢?你只需要一些簡單的圓形和橢圓形喔!
程式碼:
size(400,400);
background(255);
strokeWeight(5); //寬度=5
//設定完成
stroke(0);
fill(59,172,216);
ellipse(200,200,300,290);//藍圈
stroke(255);
fill(234,47,64);
ellipse(200,200,250,240);//紅圈
stroke(255);
fill(125,181,44);
ellipse(200,200,200,190);//綠圈
stroke(0);
fill(255);
rect(50,200,300,150);//切半
stroke(255);
fill(255);
rect(50,205,300,150);//切邊
stroke(0);
fill(255,244,214);
ellipse(200,200,150,140);//臉
stroke(0);
fill(0);
ellipse(165,190,20,20);//左眼
stroke(0);
fill(0);
ellipse(235,190,20,20);//右眼
stroke(0);
fill(255,244,214);
ellipse(200,230,50,30);//鼻子
stroke(252,244,214);
fill(255,244,214);
ellipse(201,226,50,30);//嘴
stroke(0);
fill(135,96,27);
ellipse(200,215,30,20);//切邊
//完成了~






沒有留言:
張貼留言