for-loop 2

color black = #000000;
color white = #f1f1f1;

void setup() {
  background(#f1f1f1);
  size(800, 600, P2D);
  rectMode(CENTER);
  noStroke();
  fill(black);
}

void draw() {  
  background(white);

  for (int i = 0; i < mouseX/3; i++) {
    pushMatrix();
    translate(width/4+i*2,height/2);
    rotate(radians(i*2));
    rect(0, 0, 2, 500);
    popMatrix();
  }
}