http://www.psfk.com/2013/03/rap-lyrics-street-signs.html
learning processing:
sample codes:
float xc, yc;
float R;
int N;
void setup(){
size(600, 600);
xc = width/2;
yc = height/2;
R = 250;
N = 36;
}
void draw(){
background(0);
stroke(255);
R = dist(mouseX,mouseY, xc, yc);
for (int i = 0; i< N; i++){
ellipse(xc+R*cos(i*2*PI/N), yc+R*sin(i*2*PI/N), 20, 20);
}
}
沒有留言:
張貼留言