void setup() { size(600, 600); noStroke(); background(255); smooth(); // Zufällige Anfangsfarbe fill(random(255), random(255), random(255), 50); } void draw() { // Um die Maus herum (sanfter Zufall) float x = mouseX + random(-20, 20); float y = mouseY + random(-20, 20); // Farbe ändern, wenn Maus geklickt wird. if (mousePressed) { fill(random(255), random(255), random(255), 50); } // ODER: // Farbe abhängig von Mausposition //fill(x, y, 0, 50); float s = random(20, 50); ellipse(x, y, s, s); }