Reorient display

This reflects the way the FireStar sits on the ground.
This commit is contained in:
Aaron Fenyes 2019-09-29 16:28:28 +02:00
parent 9dc6098ff3
commit fef5385da7
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import phue, pygame, colorsys
viewsize = 600
shrink = 0.9
vertices = [(viewsize*(1 + shrink*x)/2, viewsize*(1 + shrink*y)/2) for x, y in
[(0, 0)] + [(cos(-n*pi/5), sin(-n*pi/5)) for n in range(10)] + [(0, 0)]
[(0, 0)] + [(sin(n*pi/5), -cos(n*pi/5)) for n in range(10)] + [(0, 0)]
]
# edges as vertex pairs. FireStar will rest on vertices 6 (A), 5 (B), 7 (C)