Change limits to avoid pygame.draw.arc's degenerate behaviour.
authorNeil <neil@dip.sun.ac.za>
Wed, 7 Sep 2016 09:11:37 +0000 (11:11 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 7 Sep 2016 09:11:37 +0000 (11:11 +0200)
Pygame's draw arc is buggy, and confuses degrees and radians in the case
when start_angle > stop_angle. Pygame adds 360 radians to stop_angle,
instead of 360 degrees. This results in incorrect output, and absolutely
terrible performance.

data/stations/station-alpha.json

index b2fad618ffb368056bfa8493c5461fb258d5b6cd..176794d98ddad0d21c9ebf1b8aef8657f9136bf0 100644 (file)
@@ -32,7 +32,7 @@
       "direction": 90.0,
       "spread": 45.0,
       "radius_limits": [20, 200],
-      "angle_limits": [90, -90],
+      "angle_limits": [90, 270],
       "intensity": 0.8
     },
     {