xxxxxxxxxx
size(800, 800);
background(255);
void moveShapes() {
int cool = random(255);
int cooler = 255-cool;
background(cool);
noStroke();
fill(random(255), random(255), random(255));
xPos1 = random(190, 210);
yPos1 = random(590, 610);
quad(xPos1, 0, 800, 0, 800, yPos1, xPos1, yPos1);
fill(random(255), random(255), random(255));
quad(0, yPos1, xPos1, yPos1, xPos1, 800, 0, 800);
fill(random(255), random(255), random(255));
xPos2 = random(690, 710);
yPos2 = random(690, 710);
quad(xPos2, yPos2, xPos2, 800, 800, 800, 800, yPos2);
stroke(cooler);
strokeWeight(10);
line(0, yPos1, 800, yPos1);
line(xPos1, 0, xPos1, 800);
line(0, yPos1/2, xPos1, yPos1/2);
line(xPos2, 800, xPos2, yPos1);
line(xPos2, yPos2, 800, yPos2);
}
void draw(){
moveShapes();
}