2013年4月1日 星期一

week 6. public poetry

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);
 
  }
}

沒有留言:

張貼留言