วันอาทิตย์ที่ 23 มิถุนายน พ.ศ. 2556
The Sun can be moved with mouse.
void setup() {
size(100,100);
}
void draw() {
background(204);
background(51);
//House
fill(160,45,70);
rect(34,55,30,30);
rect(40,60,18,30);
triangle(34, 55, 50, 35, 65, 55);
//Cloud
fill(0,100,220);
ellipse(80,3,40,10);
ellipse(80,14,25,10);
ellipse(70,20,25,13);
//Bush
fill(100,200,50);
ellipse(80,75,12,12);
ellipse(90,77,17,17);
//Tree
fill(100,200,50);
line(20,55,40,150);
line(14,55,27,150);
ellipse(20,50,22,20);
ellipse(14,48,20,25);
ellipse(15,55,20,20);
//Slope
ellipse(50,150,150,150);
//Sun
fill(225,0,0)
ellipse(mouseX,mouseY,30,30);
noFill();
}
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น