xxxxxxxxxx
31
function setup() {
createCanvas(700, 700);
}
function draw() {
background(0);
if (mouseIsPressed) {
background ('#83BAD3');
}
stroke(255);
strokeWeight(3);
rect(250,250,200,200);
let x = mouseX
let y = mouseY
if ((x > 250) && (x < 450) && (y > 250) && (y < 450)) {
fill('pink');
}
else {
fill(255);
}
stroke(255);
strokeWeight(5);
circle(340,100,100,100);
}