xxxxxxxxxx
20
var x = 200
var y = 375
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
circle(x,y,50)
if (mouseX < x + 25 && mouseX > x - 25 && mouseY < y + 25 && mouseY > y - 25 ) {
if (mouseIsPressed) {
x = mouseX
y = mouseY
}
}
}