xxxxxxxxxx
var balls = []
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
colorMode(HSB)
for (var i=0; i<10; i++) {
let ball = new Ball({
})
balls.push(ball)
}
}
function draw() {
for (let b of balls) {
b.update()
b.draw()
}
}