let stars = []; function setup() createCanvas(windowWidth, windowHeight); for (let i = 0; i < 800; i++) stars.push( x: random(-width, width), y: random(-height, height), z: random(width) );
ellipse(sx, sy, r, r);
function updatePosition() x - radius <= 0) dx = -dx; if (y + radius >= height
let stars = []; function setup() createCanvas(windowWidth, windowHeight); for (let i = 0; i < 800; i++) stars.push( x: random(-width, width), y: random(-height, height), z: random(width) );
ellipse(sx, sy, r, r);
function updatePosition() x - radius <= 0) dx = -dx; if (y + radius >= height