วันจันทร์ที่ 10 สิงหาคม พ.ศ. 2558

Lab 0 : My Favorite 1 (Game)



void setup(){
size(500,500);
background(#58D1F4);
int x=-40;
int y=170;

fill(#6A3205);                              //ear l
stroke(#6A3205);
ellipse(150,330,120,120);

fill(#6A3205);                              //ear r
stroke(#6A3205);
ellipse(350,330,120,120);

fill(#4C2404);                              //in ear l
stroke(#4C2404);
ellipse(150,330,75,75);

fill(#4C2404);                              //in ear r
stroke(#4C2404);
ellipse(350,330,75,75);

fill(#6A3205);                              //head
stroke(#6A3205);
ellipse(250,470,340,320);

fill(#EFF804);                              //petal1
stroke(#EFF804);
ellipse(215+x,165+y,50,50);

fill(#EFF804);                              //petal2
stroke(#EFF804);
ellipse(185+x,190+y,50,50);

fill(#EFF804);                              //petal3
stroke(#EFF804);
ellipse(245+x,190+y,50,50);

fill(#EFF804);                              //petal4
stroke(#EFF804);
ellipse(235+x,225+y,50,50);

fill(#EFF804);                              //petal5
stroke(#EFF804);
ellipse(195+x,225+y,50,50);

fill(#522F03);                              //pollen
stroke(#522F03);
ellipse(215+x,200+y,30,30);


fill(0);                                        //eye l
stroke(0);
ellipse(230,440,25,25);

fill(0);                                        //eye r
stroke(0);
ellipse(280,440,25,25);

fill(#FDCF86);                            //mouth
stroke(#FDCF86);
ellipse(255,500,80,95);

fill(0);                                        //nose
stroke(0);
ellipse(255,485,15,15);

noFill();                                     //continue nose
stroke(0);
strokeWeight(2);
line(255,485,255,500);

fill(#FEAF04);                            //sun
stroke(#FEAF04);
ellipse(460,30,250,250);

}

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

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