           }
            });
        }

        // 绘制像素风格的星球
        function drawPixelPlanet(x, y, radius, colors) {
            const cellSize = Math.max(2, radius / 5);
            const cols = Math.ceil(radius * 2 / cellSize);
            const rows = Math.ceil(radius * 2 / cellSize);

            for (let i = 0; i < cols; i++) {
                for (let j = 0; j < rows; j++) {
                    const dx = (i - cols / 2) * cellSize;
                    const dy = (j - rows / 2) * cel