Source code for bibliopixel.animation.off

from . animation import Animation


[docs]class Off(Animation): """A trivial animation that turns all pixels in a layout off.""" def __init__(self, layout, timeout=1, **kwds): super().__init__(layout, **kwds) self.internal_delay = timeout
[docs] def step(self, amt=1): self.layout.all_off()
from .. util import deprecated if deprecated.allowed(): # pragma: no cover OffAnim = Off