int my = -10;
void setup() {
size(520, 750);
}
void draw(){
background(0);
hrpt(my);
move(my);
my=(my-1);
if(my==-300)my=-10;
}
void hrpt(int Y){
//Name
stroke(74, 172, 230);
quad(419, 130, 419, 22, 75, 22, 75, 130);
//text
font = loadFont("FFScala.ttf");
textFont(font);
fill(0, 102, 153);
textSize(40);
text("Harry", 200, 70);
fill(0, 102, 153);
textSize(40);
text("Potter", 195, 110);
//page
stroke(0)
fill(184, 184, 184);
quad(500, 0, 510, 0, 510, 750, 500, 750);
quad(510, 0, 520, 0, 520, 750, 510, 750);
}
void move(int Y){
//sign
stroke(0,102,51)
fill(0,102,51)
quad(0, 160+Y, 500, 160+Y, 0, 750+Y, 500, 750+Y);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น