xxxxxxxxxx
int x = 200;
int y = 200;
int w = 100;
int h = 100;
void setup(){
size (500, 500);
background(255,255,255);
stroke(0,0,0);
noFill();
}
void draw (){
background (255,255,255);
rect(x,y,w,h);
fill (0,255,250);
if(mousePressed){
if(mouseX>x && mouseX <x+w && mouseY>y && mouseY <y+h){
fill(0,0,0);
}
}
}