LINKINPARK
//FAV Song function
//int posX=random(0);//fill value to move(X)
//int posY=random(0);//fill value to move(Y)
int movex;
int movey;
int value=2;
void setup() {
int movex;
int movey;
int value=2;
void setup() {
size(500, 500);
}
void draw() {
movex=value+movex;
if (movex>200||value<0) {
value=-4;
background(#0000DD);
symbol(movex, movey);
}
if (movex<-200||value>0) {
value=4;
background(#DD0000);
symbol(movex, movey);
}
}
}
void draw() {
movex=value+movex;
if (movex>200||value<0) {
value=-4;
background(#0000DD);
symbol(movex, movey);
}
if (movex<-200||value>0) {
value=4;
background(#DD0000);
symbol(movex, movey);
}
}
void symbol(int posX, int posY) {//function
//background's circle
stroke(255);//black line
strokeWeight(14);//thick line
fill(0);//line's color
ellipse(250+posX, 250+posY, 250, 250);//big circle with nothing inside of it
//Linkin Park symbol
line(260+posX, 125+posY, 185+posX, 290+posY);
line(185+posX, 290+posY, 325+posX, 290+posY);
line(325+posX, 290+posY, 275+posX, 180+posY);
line(275+posX, 180+posY, 195+posX, 360+posY);
//open the circle
stroke(0);
line(247+posX, 123+posY, 238+posX, 140+posY);
line(215+posX, 350+posY, 205+posX, 370+posY);
}
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น