bibliopixel.animation.indexed module

class bibliopixel.animation.indexed.Indexed(layout, animations=None, **kwds)[source]

Bases: bibliopixel.animation.collection.Collection

An Indexed is a bibliopixel.animation.Collection which keeps track of the current animation through an index into the list of animations, and gets a callback after that index changes.

An Indexed has two properties.

index is a mutable property indexing the current animation in the list of animations.

current_animation returns the animation at position index or None if it is out of the bounds of the Collection.

animation
Returns:the selected animation based on self.index, or None if self.index is out of bounds
backward(*unused)[source]
current_animation

DEPRECATED: :returns: self.animation

forward(*unused)[source]
index
Returns int:index of the current animation within the Collection.
pre_run()[source]
step(amt=1)[source]