 0, width, height);

            bodies.forEach(body => {
                body.angle += body.speed;
                drawBody(body);
            });

            earthDays += 10 * (1 / 60); // 10 days per second at 60 FPS
            drawFPS();
            frameCount++;
            requestAnimationFrame(animate);
        }

        window.addEventListener('resize', () => {
            width = window.innerWidth;
            height = window.innerHeight;
            canvas.width = width;
            canvas.heig