วันจันทร์ที่ 24 มิถุนายน พ.ศ. 2556

Songkran Festival




void setup() {
size (300, 300);
}
int count = 20;
void draw() {
background (49, 255, 46);
drawHuman();
drawWater(count);
count=count-1;
if(count<0){
count=50;
}
}
void drawHuman() {
stroke (170, 53, 7);
fill (229, 202, 113); //Human1
ellipse (80, 100, 50, 50);
line (80, 125, 80, 180);
line (80, 180, 100, 230);
line (80, 180, 60, 230);
line (80, 150, 120, 140);
line (80, 150, 120, 160);
noStroke();
stroke (90, 39, 5);
fill (227, 163, 98); //Human2
ellipse (230, 120, 40, 40);
line (230, 140, 230, 180);
line (230, 180, 250, 200);
line (230, 180, 210, 200);
line (230, 160, 200, 180);
line (230, 160, 200, 160);
stroke (147, 141, 138); //crow1
fill (90, 82, 76);
ellipse (120, 150, 30, 20);
fill (134, 127, 123);
ellipse (120, 150, 20, 10);
fill (37, 206, 185);
stroke (147, 141, 138); //crow2
fill (90, 82, 76);
ellipse (200, 170, 25, 20);
fill (134, 127, 123);
ellipse (200, 170, 20, 15);
fill (37, 206, 185);
ellipse (200, 170, 18, 8);
}
void drawWater(int x){
int y=150;
int z=30;
fill (37, 206, 185);
ellipse(150,y,x,z);
}

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

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