/** * Click and/or move mouse to get crazier. */ float r; float g; float b; float a; void setup() { //size of window size(670,670); frameRate(4); background(10,205,75); smooth(); } void draw() { r = random(255); g = random(255); b = random(255); a = random(255); stroke(a,g); // 1st small square & large square outline strokeWeight(6); //square outline thickness fill(r,g,b,a); // random colors inside square rect(0,0,200,200); rect(100,100,200,200); line(200,100,200,200); line(100,200,200,200); rect(100,100,400,400); stroke(35,67,175); rect(100,100,200,200); line(200,100,200,200); line(100,200,200,200); line(200,0,300,100); line(0,200,100,300); line(0,0,100,100); line(200,200,300,300); stroke(25,250,10); //circle color outline strokeWeight(4); //circle outline thickness ellipseMode(CENTER); ellipse(600,600,100,100); //bottom circle ellipse(600,500,100,100); //middle circle ellipse(600,400,100,100); //top circle rect(mouseX,mouseY,100,100); } void mousePressed () { background (r,g,b,a); }