- Notifications
You must be signed in to change notification settings - Fork0
An orrery in PyGame in a retro-style and an HD version, based on Pico Solar System
License
mdoege/Orrery
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An orrery in PyGame, based on code frompico-solar-system
In orrery.py and orrery_hd.py, orbits are approximated as concentric circles around the Sun.
The actual elliptical orbits are shown in orrery_real_orbits.py, which is particularly noticeable for the Mercury and Mars orbits. The planets leave trails in this program to show their orbits.
The Sun and planet images are not drawn to scale.
Pressleft and right cursor keys to advance by a single day,up and down cursor keys to advance by 30 days, orpage up and down to advance by 365 days.
PressReturn to jump back to today's date; pressA to toggle animation. In the HD version,F toggles fast animation speed.
In the HD version, pressingD toggles true distance mode where the orbits are drawn at their true average solar distances. Use+ and - to zoom in and out. Angles between planets are closer to reality in this view, especially if the outer planets are involved.
Classic mode:
HD mode:
HD mode with true distance scaling enabled:
Real orbits:
GPL