วันอาทิตย์ที่ 23 สิงหาคม พ.ศ. 2558
Lab 1 : Game from Lab 0 (resize -)
void setup(){
size(500,500);
background(#58D1F4);
int x=0;
int y=20;
int w=-20;
int h=-20;
fill(#6A3205); //ear l
stroke(#6A3205);
ellipse(150,330+y,120+w,120+h);
fill(#6A3205); //ear r
stroke(#6A3205);
ellipse(350,330+y,120+w,120+h);
fill(#4C2404); //in ear l
stroke(#4C2404);
ellipse(150,330+y,75+w,75+h);
fill(#4C2404); //in ear r
stroke(#4C2404);
ellipse(350,330+y,75+w,75+h);
fill(#6A3205); //head
stroke(#6A3205);
ellipse(250,470+y,340+w,320+h);
fill(#EFF804); //petal1
stroke(#EFF804);
ellipse(175,305+y,50,50);
fill(#EFF804); //petal2
stroke(#EFF804);
ellipse(145,330+y,50,50);
fill(#EFF804); //petal3
stroke(#EFF804);
ellipse(205,330+y,50,50);
fill(#EFF804); //petal4
stroke(#EFF804);
ellipse(195,365+y,50,50);
fill(#EFF804); //petal5
stroke(#EFF804);
ellipse(155,365+y,50,50);
fill(#522F03); //pollen
stroke(#522F03);
ellipse(175,340+y,30,30);
fill(0); //eye l
stroke(0);
ellipse(230,440+y,25,25);
fill(0); //eye r
stroke(0);
ellipse(280,440+y,25,25);
fill(#FDCF86); //mouth
stroke(#FDCF86);
ellipse(255,500+y,80+w,95+h);
fill(0); //nose
stroke(0);
ellipse(255,485+y,15+w,15+h);
noFill(); //continue nose
stroke(0);
strokeWeight(2);
line(255,485+y,255,500+y);
fill(#FEAF04); //sun
stroke(#FEAF04);
ellipse(460,30,250+w,250+h);
}
ป้ายกำกับ:
Lab 1
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)

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