//declaring those oh-so-many variables int randX, randY, randCol1, randCol2, randCol3, randSize1, randSize2; void setup() { //the field is 400 by 400 size(400,400); } void draw() { //when any key is pressed... if(keyPressed == true) { //...randomly placed... randX = int(random(0, 400)); randY = int(random(0, 400)); //...randomly sized... randSize1 = int(random(3, 250)); randSize2 = int(random(3, 250)); //...randomly colored... randCol1 = int(random(0, 255)); randCol2 = int(random(0, 255)); randCol3 = int(random(0, 255)); //...squares with no outlines are created. noStroke(); fill(randCol1, randCol2, randCol3); rect(randX, randY, randSize1, randSize2); } }