art code 7


float amount = 3000;


void setup() {

  size(1280, 720);

 

}


void draw() {

  background(0);

  fill(200);

  

  translate(width/6, height/8);

  for (int i = 1; i <= amount; i++) {

    float y = map(i, 0, amount, height*1, -height*2);

    float x = map(tan(radians((frameCount + (i*6)))), -6, 2, -width*0.4, width*0.4);

    pushMatrix();

    translate(x, y);

    rect(-200, -100, 10, 100); 

    popMatrix();

  }

  

}

Comments

Popular posts from this blog

video loops, art code 9

video loops, art code 6

art code 12