self.colour_pos = colours.index(start_colour)
self.colour = start_colour
self.on = on
- if not on and len(colours) > 1:
+ if not on:
self.colour_pos = -1
self.intensity = intensity
self.body = pymunk.Body(0, 0, pymunk.body.Body.STATIC)
def off(self):
self.on = False
+ self.colour_pos = -1
def toggle(self):
self.colour_pos += 1