nick /224 /lines

blob b;
float count;
float counter;
void setup(){
  size(800,600);
  b = new blob(200);
  smooth();
}

void draw(){
  b.draw();
  counter-=.001;
  b.move(count+=counter);
}

class blob{
  float x,y,xv,yv;
  float angle;
  //slob[] bs = new slob[2];
  blob(float init_value){
    int start_spot = (int)map(init_value, 0, 1024, 0, width * height);
    x = start_spot % width;
    y = start_spot / width;
  }
  void draw(){
    point(x,y);
  }
  void move(float value){
    //value = map(value, 0,1, -.25,.25);
    x = cos(value) * 1 + x;
    y = sin(value) * 1 + y;
  }
}

Page Details
Contact DANM  |  Digital Arts and New Media  |  Arts Division  |  Grad Division
login