moondial

A sun clock that shows moon and planet positions along with the moon's terminator, a strip with mean time at every longitude, and selected cities with lines to their respective civil time.
git clone https://code.literati.org/moondial.git
Log | Files | Refs | README | LICENSE

commit 2c72a257e9e4acbdf6e85e806b60ade51e1c61b6
parent ea86202aaffc63091f18fe472a5b45bab2377c82
Author: Sean Lynch <seanl@literati.org>
Date:   Thu, 18 Jan 2018 22:42:57 -0800

Don't try to draw single-point lines in make_moonmap

Diffstat:
Mmoondial.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/moondial.py b/moondial.py @@ -171,6 +171,9 @@ class MoonDial(object): pointss = planets.get_terminator(lat, standard_rst_altitude, size, False) for points in pointss: + if len(points) < 2: + continue + pygame.draw.lines(surface, (255, 255, 255, 160), False, points) self.moonmap = surface