float x; float y; float s; void setup() { size(300, 300); background(255); rectMode(CENTER); } void draw() { x = random(width); y = random(height); s = random(20, 50); // Die Variable y wird zum Einen für die Farbwahl (hier den Rot-Wert) // zum Anderen für die Positionierung des Rechtecks verwendet. fill(y, 255, 0, 200); rect(x, y, s, s); }