Skip to main content
Module

x/targadactyl/deps.ts>AnimatedImage

tga.js implemented in Deno
Latest
interface AnimatedImage
import { type AnimatedImage } from "https://deno.land/x/targadactyl@1.2.0/deps.ts";

See SkAnimatedImage.h for more information on this class.

Methods

decodeNextFrame(): number

Decodes the next frame. Returns -1 when the animation is on the last frame.

getFrameCount(): number

Return the total number of frames in the animation.

getRepetitionCount(): number

Return the repetition count for this animation.

height(): number

Returns the possibly scaled height of the image.

makeImageAtCurrentFrame(): Image | null

Returns a still image of the current frame or null if there is no current frame.

reset(): void

Reset the animation to the beginning.

width(): number

Returns the possibly scaled width of the image.