
size(100,100);//At first we defined size of picture.
background(#FFFFFF);//defined to be white color.
//Melt
stroke(#66CC99);//defined back color to be blue color.
fill(#66CC99);//defined to be blue color.
ellipse(80,70,10,20);//draw a ellipse.
//Ice-cream
stroke(#6495ED);//defined color of line.
fill(#6495ED);//defined color of picture.
arc(50, 50, 50, 55, 0, PI/2);//draw an ice cream.
arc(50, 50, 50, 55, PI/2, PI);//draw an ice cream.
//Cone
stroke(#FFD700);//defined color of line.
//defined color of picture.int y = 55;//defined position in y direction.
triangle(23,y,50,12,78,y);draw an cone's ice cream.
//an cone's ice cream(up ward)
line(55,55,40,30);
line(68,56,45,22);
line(45,56,34,40);
an cone's ice cream(down ward)line(60,55,68,43);
line(45,55,60,30);
line(35,56,55,19);
//Landscape of the Earth
stroke(#00FF66);//defined color of line.
fill(#00FF66);defined color of picture.
ellipse(40,70,10,10);//draw the part of green landscape.
stroke(#009966);//defined color of line.
fill(#009966);defined color of picture.
ellipse(47,74,10,10);//draw the part of green landscape.
stroke(#00CC66);//defined color of line.
fill(#00CC66);defined color of picture.
ellipse(33,65,10,10);//draw the part of green landscape.
stroke(#00CC33);//defined color of line.
fill(#00CC33);defined color of picture.
ellipse(45,66,10,10);//draw the part of green landscape.
stroke(#00FF99);//defined color of line.
fill(#00FF99);defined color of picture.
ellipse(30,60,10,10);//draw the part of green landscape.
stroke(#00FF99);//defined color of line.
fill(#00FF99);defined color of picture.
ellipse(55,72,10,10);//draw the part of green landscape.
stroke(#009966);//defined color of line.
fill(#009966);defined color of picture.
ellipse(70,60,10,10);//draw the part of green landscape.
stroke(#00CC33);//defined color of line.
fill(#00CC33);defined color of picture.
ellipse(65,62,10,10);//draw the part of green landscape.
fill(#000000);
//face
ellipse(35,65,10,10);//draw left eye.
ellipse(65,65,10,10);;//draw right eye.


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