ight = canvas.offsetHeight;
                    canvas.width = width;
                    canvas.height = height;
                    particles = [];
                    for (let i = 0; i < 100; i++) {
                        particles.push(new Particle());
                    }
                }

                function animate() {
                    ctx.clearRect(0, 0, width, height);
                    particles.forEach(p => {
                        p.update();
                        p.