17 สิงหาคม 2558

Lab0 Doraemon Book







void setup() {
size(500, 500);
background(#F6B0D8);
strokeJoin(ROUND);
//----- front page -----//
strokeWeight(2);
fill(#323C5D);
rect(100,100,270,340);

//----- behind doraemon background -----//
noStroke();
fill(#FCE314);
rect(125,220,220,205);

//----- name book background -----//
fill(255);
rect(125,130,220,50);
//----- name book -----//
fill(0);
textSize(35);
text("DORAEMON", 133, 167);

//----- book page -----//
strokeWeight(2);
stroke(0);
fill(255);
quad(100,100,130,80,400,80,370,100);
quad(370,100,400,80,400,420,370,440);
strokeWeight(1);
line(106,96,376,96);
line(112,92,382,92);
line(118,88,388,88);
line(124,84,394,84);
line(376,96,376,436);
line(382,92,382,432);
line(388,88,388,428);
line(394,84,394,424);

//----- Doraemon -----//
strokeWeight(3);
stroke(#325D87);
//----- face -----//
fill(#4F81BC);
ellipse(235,320,200,175);
fill(255);
ellipse(235,334,140,125);

//----- eyes -----//
fill(255);
ellipse(215,274,37,50);
ellipse(255,274,37,50);
fill(#325D87);
ellipse(220,279,8,8);
strokeWeight(4);
arc(248,281,6,6,PI,TWO_PI);
strokeWeight(3);

//----- nose -----//
fill(#FE0000);
ellipse(235,301,20,20);

//----- mounth -----//
noFill();
arc(235,350,100,50,0,PI);
line(235,312,235,375);

//----- Whiskers -----//
line(220,320,177,315);
line(220,325,175,325);
line(220,330,177,335);

line(250,320,293,315);
line(250,325,295,325);
line(250,330,293,335);

//----- collar -----//
fill(#FD0000);
rect(185,395,100,13);

//----- bell -----//
fill(#FCBE0C);
ellipse(235,394,20,20);

//----- hands -----//
fill(255);
ellipse(180,395,30,28);
ellipse(290,395,30,28);

}

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

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