xxxxxxxxxx
23
function setup() {
createCanvas(400, 400);
}
function draw() {
background(0);
if (mouseIsPressed){
background(225);
}
rect(100,100,100,100);
noFill();
noStroke();
if ((mouseX>100 && mouseX<200) && (mouseY>100 && mouseY<200)){
fill('#3FC1FF');
}
}