gradient = ctx.createRadialGradient(x, y, 0, x, y, planet.size);
            planet.color.forEach((color, index) => gradient.addColorStop(index / 4, color));
            ctx.fillStyle = gradient;
            ctx.fill();

            // Draw label
            ctx.fillStyle = 'white';
            ctx.font = 'bold 12px Arial';
            ctx.fillText(planet.name, x - planet.size, y - planet.size);
        }

        function update() {
            const currentTime = performance.now();
            const delta