From b07a7c799b3ca5c28167ae42844666dbb7fba6be Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 7 Sep 2016 11:11:37 +0200 Subject: [PATCH] Change limits to avoid pygame.draw.arc's degenerate behaviour. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/stations/station-alpha.json b/data/stations/station-alpha.json index b2fad61..176794d 100644 --- a/data/stations/station-alpha.json +++ b/data/stations/station-alpha.json @@ -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 }, { -- 2.34.1