xxxxxxxxxx
22
function setup() {
createCanvas(400, 400);
}
function draw() {
noFill();
if (mouseY >150 && mouseY <250 && mouseX >150 && mouseX <250) {
fill (0,0,100);
if (mouseIsPressed) {
fill (300,150,0)
rectMode(CENTER);
rect(200,200,200)
background(100,0,0)
}
}
circle(200,200,100)
}