วันอาทิตย์ที่ 23 สิงหาคม พ.ศ. 2558
Lab1 : Move Book
void setup() {
size(600,600);
background(#ffffff);
int posX=0; //move
int posY=0;
int x=455+posX;
int x2=5+posX;
int y=455+posY;
int y2=5+posY;
println("PUCCA");
print("2015");
strokeWeight(4); //front cover
fill(#FF1A29);
quad(posX,posY,450+posX,posY,450+posX,450+posY,posX,450+posY);
fill(#000000); //bun hair
ellipse(80+posX,100+posY,130,130);
ellipse(370+posX,100+posY,130,130);
fill(#FC4747); //ribbon
ellipse(315+posX,150+posY,80,80);
ellipse(125+posX,150+posY,80,80);
fill(#000000); //hair
ellipse(222+posX,210+posY,300,250);
fill(#FFF6C9); //face
ellipse(222+posX,230+posY,250,200);
strokeWeight(5); //eyes
line(110+posX,220+posY,170+posX,250+posY);
line(335+posX,220+posY,265+posX,250+posY);
noStroke(); //cheek
fill(#FFB6A2);
ellipse(310+posX,275+posY,25,25);
ellipse(133+posX,275+posY,25,25);
stroke(#000000); //mouth
noFill();
arc(220+posX, 280+posY, 40, 50, 0,PI);
fill(#FFF152); //Pucca
textSize(80);
textAlign(RIGHT);
text("PUCCA", 360+posX, 420+posY);
strokeWeight(2); //paper
line(x2,y,x,y);
line(x2+5,y+5,x+5,y+5);
line(x2+10,y+10,x+10,y+10);
line(x2+15,y+15,x+15,y+15);
line(x2+20,y+20,x+20,y+20);
line(x,y2,x,y);
line(x+5,y2+5,x+5,y+5);
line(x+10,y2+10,x+10,y+10);
line(x+15,y2+15,x+15,y+15);
line(x+20,y2+20,x+20,y+20);
line(posX,450+posY,25+posX,475+posY);
line(450+posX,posY,475+posX,25+posY);
}
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น