void setup() { size(300, 300); smooth(); } void draw() { noStroke(); rectMode(CENTER); fill(8,14,116); rect(150,150,60,60); fill(255,206,14); rect(150, 150, 50, 50); } void mousePressed() { float R = random (255); float G = random (255); float B = random (255); if (mouseX >= 120 && mouseX <=180 && mouseY >=120 && mouseY <= 180) { background (R, G, B); } }