int wide=0;
int high=0;
int colour;
void setup() {
size(350, 450);
}
void draw() {
draw_wolf(0-243,180);
frameRate(10);
wide=(wide+10)%(width+250);
draw_text();
}
void draw_wolf(int x,int y) {
background(#a19d8c);
//wolf : begin at left to right
fill(colour);
noStroke();
beginShape();
vertex(x+wide, 165+y); //01-no move
//over
vertex(70+x+wide, 96+y); //02
vertex(164+x+wide, 74+y); //03
vertex(188+x+wide, 50+y); //04
vertex(179+x+wide, 18+y); //05
vertex(195+x+wide, 30+y); //06
vertex(190+x+wide, 17+y); //07
vertex(205+x+wide, 30+y); //08
vertex(239+x+wide, y); //09
//under
vertex(243+x+wide, 10+y+high); //10
vertex(235+x+wide, 40+y+high); //11
vertex(247+x+wide, 27+y+high); //12
vertex(250+x+wide, 35+y+high); //13
vertex(230+x+wide, 60+y+high); //14
vertex(195+x+wide, 142+y+high); //15
vertex(198+x+wide, 175+y+high); //16
vertex(215+x+wide, 188+y+high); //17
vertex(200+x+wide, 190+y+high); //18
vertex(187+x+wide, 168+y+high); //19
vertex(190+x+wide, 190+y+high); //20
vertex(205+x+wide, 205+y+high); //21
vertex(190+x+wide, 205+y+high); //22
vertex(165+x+wide, 145+y+high); //23
vertex(105+x+wide, 135+y+high); //24
vertex(85+x+wide, 150+y+high); //25
vertex(85+x+wide, 167+y+high); //26
vertex(105+x+wide, 180+y+high); //27
vertex(85+x+wide, 180+y+high); //28
vertex(75+x+wide, 150+y+high); //29
vertex(60+x+wide, 160+y+high); //30
vertex(55+x+wide, 185+y+high); //31
vertex(70+x+wide, 197+y+high); //32
vertex(55+x+wide, 198+y+high); //33
vertex(45+x+wide, 160+y+high); //34
vertex(50+x+wide, 150+y+high); //35
endShape();
}
void draw_text() {
fill(#2f4940);
textSize(80);
text("WHITE", 40, 75);
text("FANG", 60, 150);
textSize(30);
text("JACK LONDON", 70, 425);
}
void mouseClicked() {
colour = color(random(0, 225), random(0, 225), random(0, 225));
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น