xxxxxxxxxx
25
let x = 0;
function setup() {
createCanvas(400, 400);
background(43, 166, 151);
}
function draw() {
// background(43, 166, 151);
fill(0);
stroke(255);
strokeWeight(5);
rect(200, 200, 100, 50);
fill(x);
stroke(0);
strokeWeight(1);
circle(mouseX, mouseY, 30);
if (x < 300) {
x = x + 1;
}
}