88
87
gc.PushState() # save it again
90
89
gc.DrawText("Rotate", 0, -BASE2)
93
96
for angle in range(0, 360, 30):
96
99
r, g, b = [int(c * 255) for c in colorsys.hsv_to_rgb(float(angle)/360, 1, 1)]
97
100
gc.SetBrush(wx.Brush(wx.Colour(r, g, b, 64)))
101
gc.SetPen(wx.Pen(wx.Colour(r, g, b, 128)))
99
103
# use translate to artfully reposition each drawn path
100
104
gc.Translate(1.5 * BASE2 * cos(radians(angle)),
101
105
1.5 * BASE2 * sin(radians(angle)))