1. Arne Babenhauserheide
  2. pyrad

Commits

Arne Babenhauserheide  committed 8e39d77

arrange items clockwise - beginning at the bottom.

  • Participants
  • Parent commits e4bbeb8
  • Branches default

Comments (0)

Files changed (1)

File rad.py

View file
         # And finally arrange all other items in a circle around the center.
         for i in self.circle[1:]:
             angle = 2 * pi * (self.circle.index(i) -1 ) / len(self.circle[1:])
-            x_displacement = sin(angle)*CIRCLE_RADIUS
+	    # x is -sin(angle), so we get clockwise arrangement and a pentagramm pointing upwards ;) 
+            x_displacement = -sin(angle)*CIRCLE_RADIUS
             y_displacement = cos(angle)*CIRCLE_RADIUS
             x = 0.5*self.width() - 0.25*i.width()
             y = 0.5*self.height() - 0.75*i.height()