14 สิงหาคม 2558

Lab0 PinkCat





void setup()
{
size (500,500); //dimension of the display window width and height = 500*500 pixel
background(#FFB5C5); //pink
strokeWeight(8);

//face
noFill();
ellipse(250,250,270,250);

//ear
line(131,190,115,105);
line(115,105,210,128);
line(369,190,385,105);
line(385,105,290,128);

//eyes
fill(0); //black
ellipse(190,240,30,65);
ellipse(310,240,30,65);

//nose
strokeWeight(8);
line(230,290,270,290);
line(272,291,250,310);
line(250,310,228,291);

//mounth
noFill();
arc(229,315,40,40,0, PI/2+QUARTER_PI);
arc(271,315,40,40,QUARTER_PI, PI);

//Whiskers
strokeWeight(4);
line(165,290,200,300);
line(165,305,200,305);
line(165,320,200,310);

line(335,290,300,300);
line(335,305,300,305);
line(335,320,300,310);
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น