xxxxxxxxxx
25
let stars = [];
let bgAlpha = 18;
function setup() {
createCanvas(700, 500);
fill(255);
for (let i = 0; i < 3000; i++) {
stars[i] = new Star();
}
}
function draw() {
background(0);
translate(width/2,height/2);
for (let i = 0; i < stars.length; i++) {
stars[i].update();
stars[i].show();
}
}