float x; float y; float s; void setup() { size(200, 200); background(255); rectMode(CENTER); colorMode(RGB, height); stroke(0, 50); } void draw() { x = random(width); y = random(height); s = random(20, 50); fill(255, y, 0); rect(x, y, s, s); }