@goldenratio/karlib
    Preparing search index...

    Interface AnimatedTextureOptions

    interface AnimatedTextureOptions {
        autoplay?: boolean;
        frame_duration?: number;
        frames: readonly string[] | readonly Texture[];
        loop?: number;
        ping_pong?: boolean;
        speed?: number;
        start_frame_index?: number;
    }
    Index

    Properties

    autoplay?: boolean

    Start in playing state.

    true
    
    frame_duration?: number

    Default per-frame duration (in milliseconds)

    100
    
    frames: readonly string[] | readonly Texture[]

    Ordered frames for the animation.

    loop?: number

    Number of times to loop. Use Infinity for infinite loop.

    Infinity
    
    ping_pong?: boolean

    If true, play A->B->A (ping-pong).

    false
    
    speed?: number

    Global playback speed multiplier.

    1
    
    start_frame_index?: number
    0