float x = 0; float y = 0; float s = 30; void setup() { size(800, 800); background(255); fill(0); smooth(); rectMode(CENTER); } void draw() { translate(x, y); float r = x/2000; //float r = 0.3; rotate(random(-r, r)); float yr = x / 160; float y2 = random(-yr, yr); rect(0, y2, s, s); x = x + 50; if (x > width) { x = 0; y += 50; } }