Chloe – Schotter

Screen Shot 2013-09-12 at 3.24.19 AM (2)

int sqsize = 38;
int cols = 12, rows = 20;

void setup() {
  size(540,844);
  noLoop();
}

void draw()
{
  for (float i = 1.0 ; i <= rows; i++)
  {
    for (float j = 1.0 ; j <= cols; j++)
    {
      noFill();
      stroke(0);
      float angle = radians((i/rows)*random(-45, 45));

      pushMatrix();
        translate(j*sqsize, i*sqsize);
        rotate(angle);
        rect(0,0,sqsize,sqsize);
      popMatrix();
    }
  }
}

Comments are closed.