Skip to main content

Module anim

Module anim 

Source
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§

AnimationSequence
A playing multi-step animation.
FrameAnimation
A playing frame animation: an explicit frame-order array stepped at a fixed fps.
SequenceBuilder
Builder for an AnimationSequence. Steps play in the order they are added; build rejects authoring errors.

Enums§

LoopMode
Loop behavior.
SequenceError
Why a sequence could not be built. Every variant is an authoring error.
SequenceLoop
Loop behavior for an AnimationSequence.
SequenceStep
One step of an AnimationSequence.