xxxxxxxxxx
20
let CANVAS_WIDTH = 400;
let CANVAS_HEIGHT = 400;
let points = [];
function setup() {
createCanvas(400, 400);
for(let i = 0; i < 1000; i++) {
points.push(new Point(random(width), random(height), random(-180, 180), random(0.7, 1)))
}
}
function draw() {
background(255);
for (const point of points) {
point.draw();
}
}