xxxxxxxxxx
22
function setup() {
createCanvas(400, 400);
}
function draw() {
background('rgb(211,128,128)');
// print(mouseX + "," + mouseY);
stroke('black');
noFill();
if (mouseX>200 && mouseX<250){
if (mouseY>200 && mouseY<250){
fill('black');
// rect(width/2, height/2, 50, 50);
}
}
rect(width/2, height/2, 50, 50);
}