Scale the whole solar system from one sun diameter
Enter any sun diameter; the page computes planet diameters and orbital distances to the same scale, and can compute distance between any two bodies. MIT-licensed, zero dependencies—logic and UI in one HTML file for classroom or lab use.
Architecture
Pure client math: constants for planetary radii and semi-major axes drive proportional outputs. No canvas required unless you extend the file.
- Input validation keeps units consistent within a session (metric vs imperial toggles per README).
- Submodule path:
www/html/hromp.com/solar-system-calculator. - Ideal for static hosting: gzip-friendly single file.
Design
The UI favors clarity over realism: orbits are circular approximations for scale intuition, not ephemeris—appropriate for teaching proportional reasoning.