Expand description
Pure frame-animation driver over an explicit frame order array.
Ping-pong and other patterns are authored as sheet-frame order data. The
driver owns a cursor into the order array
and an elapsed-time accumulator; the caller queries
current_frame and cuts the sheet.
Pure core: no render, no wgpu, no clocks — tick
takes the caller’s dt.
AnimationSequence is the sibling driver for animations scripted as a
list of steps: frame runs, pauses, random pauses, and action hooks, with
ping-pong loop modes.
Structs§
- Animation
Sequence - A playing multi-step animation.
- Frame
Animation - A playing frame animation: an explicit frame-order array stepped at a fixed fps.
- Sequence
Builder - Builder for an
AnimationSequence. Steps play in the order they are added;buildrejects authoring errors.
Enums§
- Loop
Mode - Loop behavior.
- Sequence
Error - Why a sequence could not be built. Every variant is an authoring error.
- Sequence
Loop - Loop behavior for an
AnimationSequence. - Sequence
Step - One step of an
AnimationSequence.