Code: Select all
rainbow_comet_v = RainbowComet(pixel_cob_vertical, speed=0.1, tail_length=15, bounce=False)
def chime():
global Chime
if Chime > 0:
animation = (rainbow_comet_v)
animation.animate()
Chime -= 1
Above example stops after "Chime" number of steps into animation and I can't seem to figure out
how to only decrement counter after cycle complete.