Gleam - v1.0.2
    Preparing search index...

    Interface SpriteAnimation

    A named animation: a list of frame sprites and the per-frame timing (seconds).

    interface SpriteAnimation {
        default?: boolean;
        name: string;
        sprites: HTMLCanvasElement[] | HTMLImageElement[];
        timing: number;
    }
    Index

    Properties

    default?: boolean

    Mark this animation as the default — played by Animator.reset and right after Animator.add when registered. At most one per Animator.

    name: string

    Unique identifier. Pass to Animator.play.

    sprites: HTMLCanvasElement[] | HTMLImageElement[]

    Frame images in playback order. Uniform size is assumed within a single animation.

    timing: number

    Seconds each frame stays visible before advancing.