Skip to content

AnimationDef

An animation’s frames (frames, or loaded or baked frame names) and, if it has them, each frame’s seconds.

frames: readonly (string | Frame)[]

The frames, in order.


optional durations?: readonly number[]

Seconds per frame (Aseprite’s durations); without them, 1 / fps each.