\n
\nCreated with passion for astronomy and web development
Orbit Radius: ${this.selectedPlanet.orbitRadius}M km
\nSize: ${this.selectedPlanet.radius}k km
\n `;\n }\n }\n\n draw() {\n this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);\n this.ctx.save();\n this.ctx.translate(this.canvas.width / 2, this.canvas.height / 2);\n\n // Draw orbits\n if (this.showOrbits) {\n this.planets.slice(1).forEach(planet => {\n this.ctx.beginPath();\n this.ctx.strokeStyle = 'rgba(255, 255, 255, 0.1)';\n this.ctx.arc(0, 0, planet.orbitRadius, 0, Math.PI * 2);\n this.ctx.stroke();\n });\n }\n\n // Draw planets\n this.planets.forEach(planet => {\n this.ctx.beginPath();\n this.ctx.fillStyle = planet.color;\n this.ctx.arc(planet.x, planet.y, planet.radius, 0, Math.PI * 2);\n this.ctx.fill();\n \n if (planet === this.selectedPlanet) {\n this.ctx.strokeStyle = '#fff';\n this.ctx.lineWidth = 2;\n this.ctx.stroke();\n }\n });\n\n this.ctx.restore();\n }\n\n update() {\n this.planets.slice(1).forEach(planet => {\n planet.angle += planet.speed * this.speed;\n planet.x = Math.cos(planet.angle) * planet.orbitRadius;\n planet.y = Math.sin(planet.angle) * planet.orbitRadius;\n });\n }\n\n animate() {\n this.update();\n this.draw();\n requestAnimationFrame(() => this.animate());\n }\n}\n\ndocument.addEventListener('DOMContentLoaded', () => {\n new SolarSystem();\n});\n\n---end---\n\nThis creates a beautiful, interactive 3D solar system visualization with the following features:\n\n1. Realistic planetary orbits and rotations\n2. Interactive controls for orbit speed and visibility\n3. Planet information panel\n4. Responsive design that works on all devices\n5. Smooth animations and transitions\n6. Professional, space-themed UI with blur effects\n7. Accessibility features\n8. Clean, modular code structure\n\nThe design uses a dark space theme with accent colors and blur effects for a modern, professional look. Users can:\n- Click planets to see information\n- Adjust orbit speed\n- Toggle orbit visibility\n- Toggle information panels\n- View on any device size\n\nThe animation is smooth and performant, using Canvas for rendering. The code is well-organized and commented for maintainability."Orbit Radius: ${this.selectedPlanet.orbitRadius}M km
Size: ${this.selectedPlanet.radius}k km