xxxxxxxxxx
26
let circleX =500;
let circleY = 80;
let circleWidth = 100;
let circleHeight = 100;
function setup() {
createCanvas(600, 600);
background(220);
frameRate(60);
}
function draw() {
strokeWeight(0)
ellipse(circleX,circleY,circleWidth,circleHeight)
if(dist(mouseX,mouseY,500,80)< 50 && mouseIsPressed) {
background(220)
}
}
function mouseDragged() {
ellipse(mouseX,mouseY,5)
}