video loops, art code 9


color fg=0;

color bg=#f1f1f1;


void setup() {

  size(1280, 720);

}


void draw() {

  background(bg);


  fill(fg);

  


  for (int i = 0; i < mouseX; i++) {

    push();

    translate(width/2, height/2);

    rotate(sin(i*200.3+(i*frameCount*0.005)));

    rect(mouseX*0.002*i, 1, 200, 2);

    ellipse(mouseX*0.002*i+15, 35, 6, 6);

    pop();

  }


  translate(mouseX, mouseY);


}

Comments

Popular posts from this blog

video loops, art code 6

art code 12