xxxxxxxxxx
21
let cir = [];
function setup() {
createCanvas(500, 500);
y = width / 2;
for (let i = 0; i < 10; i++) {
cir.push(new Circles(random(20, width - 20), random(20, height - 20), random(3,10)));
}
}
function draw() {
background(0);
for (let i = 0; i < 10; i++) {
cir[i].move();
}
}