xxxxxxxxxx
22
let circles = [];
function setup() {
createCanvas(600, 400);
}
function mouseDragged() {
let r = random(10, 40);
let b = new Circle(mouseX, mouseY, r);
circles.push(b);
}
function draw() {
background(51);
for (let i = 0; i < circles.length; i++) {
circles[i].move();
circles[i].show();
circles[i].col();
}
}