CODE
void setup(){
size(900,610);
background(0);
frameRate(200);
}
// set up valiable and setup base value
int X=1; //X is value for move picture and up size background in x line
int Y=1; //Y is value for move picture and up size background in Y line
int limitX=1;//value for limit moveing in X line
void draw(){
// set up rule for move forward and return
if(limitX>=0&&X<500)
{
X++;
limitX++;
}
if(limitX==500){
limitX=-500;
}
if(limitX<0&&X>0){
X--;
limitX++;
}
//background of book
stroke(0);
fill(255,204,0);
rect(X,Y,400,600);
//+++++crown+++++
noStroke();
fill(#ffff00);
rect(X+81,Y+305,250,100);
triangle(X+81,Y+305,X+81,Y+205,X+120,Y+305);
triangle(X+140,Y+305,X+180,Y+305,X+160,Y+205);
triangle(X+200,Y+305,X+240,Y+305,X+220,Y+205);
triangle(X+250,Y+305,X+290,Y+305,X+280,Y+205);
triangle(X+290,Y+305,X+331,Y+305,X+331,Y+205);
//++++headline+++++
fill(255-X,100,limitX);
rect(X+0,Y+50,400,50);
//+++line of light crown++++
stroke(205,204,0);
strokeWeight(5);
line(X+81,Y+310,X+331,Y+310);
line(X+81,Y+340,X+331,Y+340);
//+++Game of Thone+++
fill(255);
textSize(30);
text("Game of Thone",X+100,Y+75);
//+++a new original serie from HBO++++
textSize(15);
text("A New Original Serie from HBO",X+105,Y+95);
//++++#1 New york time bestselling author+++++
fill(240);
textSize(20);
text("#1 New York Time Bestselling Author",X+20,Y+120);
//+++GEORGE R.R++++
fill(250);
textSize(50);
text("GEORGE R.R.",X+50,Y+170);
//++MARTIN++++
textSize(40);
text("MARTIN",X+135,Y+205);
//++A OF++
textSize(25);
text("A OF",X+70,Y+500);
//++CLASH+++
textSize(60);
text("CLASH",X+100,Y+500);
//++KINGS+++
text("KINGS",X+110,Y+550);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น