bibliopixel.animation.animation module

class bibliopixel.animation.animation.Animation(layout, *, preclear=True, fail_on_exception=None, **kwds)[source]

Bases: object

COLOR_DEFAULTS = ()
FAIL_ON_EXCEPTION = False
add_preframe_callback(callback)[source]

The preframe_callbacks are called right before the start of a frame rendering pass.

To avoid race conditions when editing values, the Project adds a callback here for the top-level animation, to drain the edit_queue at a moment where no rendering is happening.

cleanup(clean_layout=True)[source]
color_list
completed

Many BiblioPixelAnimations use the old completed variable.

classmethod construct(project, *, run=None, name=None, data=None, **desc)[source]

Construct an animation, set the runner, and add in the two “reserved fields” name and data.

free_run = False
generate_frames(clean_layout=True)[source]
join(timeout=None)[source]
pre_recursion()
pre_run()[source]
run(**kwds)[source]
run_all_frames()[source]
set_project(project)[source]
start()[source]
step(amt=1)[source]
stop()[source]
subframes = 1
title
top_level = True
bibliopixel.animation.animation.BaseAnimation

alias of bibliopixel.animation.animation.Animation