//FAV Song function
//int posX=random(0);//fill value to move(X)
//int posY=random(0);//fill value to move(Y)
int value=2;
int movex=0;
void setup() {
size(500, 500);
}
void draw() {
background(#0000DD);
int n=3;
int count=1;
int movey=-20;
while (count<n) {
movex++;
symbol(movex, movey);
count=count+1;
movey=movey+280;
}
movex=movex+value;
if (movex>400||value<0) {
value=-6;
}
if (movex<-200||value>0) {
value=2;
}
}
////////////// SYMBOL FUCNTION//////////////////
void symbol(int posX, int posY) {
//background's circle
stroke(255);//black line
strokeWeight(14);//thick line
fill(0);//line's color
ellipse(150+posX, 150+posY, 250, 250);//big circle with nothing inside of it
//Linkin Park symbol
line(160+posX, 25+posY, 85+posX, 190+posY);
line(85+posX, 190+posY, 225+posX, 190+posY);
line(225+posX, 190+posY, 175+posX, 80+posY);
line(175+posX, 80+posY, 95+posX, 260+posY);
//open the circle
stroke(0);
line(147+posX, 23+posY, 138+posX, 40+posY);
line(115+posX, 250+posY, 105+posX, 270+posY);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น