Doraemon(Function)
//MY FAV MOVIE (Function)
//int posX=0;//fill value to move(Horizontal)
//int posY=0;//fill value to move(Vertical)
void setup() {
size(500, 500);
background(#FACFF4);
doraemon(0,0);//function
}
void doraemon(int posX,int posY){
stroke(#0054A5);
strokeWeight(3);
fill(#0005F0);//blue
textSize(30);
text("Doraemon : Stand by me", 75, 420);//Title
fill(#236ED6);//blue
ellipse(250+posX, 180+posY, 350, 295);//head
fill(255);//white
ellipse(250+posX, 210+posY, 250, 205);//face
ellipse(210+posX, 120+posY, 80, 100);//right hand
ellipse(290+posX, 120+posY, 80, 100);//left hand
fill(#F21D1D);//red
rect(110+posX, 300+posY, 280, 30);//cat collar
fill(255);//white
ellipse(120+posX, 300+posY, 60, 60);//right eye
ellipse(380+posX, 300+posY, 60, 60);//left eye
fill(#FF292D);//red
ellipse(250+posX, 175+posY, 45, 40);//nose
fill(255);//white
arc(250+posX, 235+posY, 180, 50, 0, PI);//cute smile
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น