xxxxxxxxxx
let dots;
function setup() {
new Canvas(500, 400);
dots = new Group();
dots.color = 'yellow';
dots.diameter = 10;
dots.amount = 50
dots.forEach((d, index) => {
d.x = random(canvas.w);
d.y = random(canvas.h);
})
// while (dots.length < 24) {
// let d = new dots.Sprite();
// d.x = dots.length * 20;
// }
}
function draw() {
clear();
}