From: Neil Date: Wed, 7 Sep 2016 09:11:37 +0000 (+0200) Subject: Change limits to avoid pygame.draw.arc's degenerate behaviour. X-Git-Tag: tabakrolletjie-v1.0.0~210 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=b07a7c799b3ca5c28167ae42844666dbb7fba6be;p=tabakrolletjie.git 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. --- 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 }, {