void setup(){size(700,700);background(172,206,37);} int value=0; void draw(){noStroke();fill(value);rect(mouseY,315,100,100);rect(mouseX,100,100,50);rect(mouseY,50,100,25);rect(mouseX,500,100,100);} void keyPressed(){if(value==0){value=200;}else{value=0;}}