float x = 0;
float y = 0;
float s = 80;

void setup() {
  size(1200, 800);
  background(255);
  fill(0, 100);
  smooth();
  rectMode(CENTER);
}

void draw() {
  
  translate(x, y);
  float r = x/2000;
  rotate(random(-r, r));
  float yr = x / 60;
  float y2 = random(-yr, yr);
  drawThing(0, y2, s);
  

  x = x + 100;
  if (x > width) {
    x = 0;
    y += 100;
  }
  
}


void drawThing(float x, float y, float s) {
  fill(0);
  rect(x, y, s, s);
  fill(255);
  s = s * random(0.5, 1);
  //s = s * 0.8;
  rect(x, y, s, s);
  fill(0);
  s = s * 0.8;
  rect(x, y, s, s);
}
