void setup () { size (1000, 700); for (int i = 0; i < 100; i++) { float a = random(0, 255); float b = random(0, 255); float c = random(0, 255); background (a, b, c); } } void draw () { noCursor (); for (int i = 0; i < 100; i++) { float a = random(0, 255); float b = random(0, 255); float c = random(0, 255); float d = random(0, width); float e = random(0, height); noStroke (); fill (a, b, c, 2); rectMode (CENTER); rect (mouseX, mouseY, d, e); } } void mousePressed () { for (int i = 0; i < 100; i++) { float a = random(0, 255); float b = random(0, 255); float c = random(0, 255); background (a, b, c); } }