Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Keyframes

Index

Constructors

constructor

  • Returns Keyframes

Properties

currentFrameIndex

currentFrameIndex: any

frameCounts

frameCounts: any

frameHeight

frameHeight: any

frameWidth

frameWidth: any

frames

frames: any

initialized

initialized: boolean

Methods

drawFrame

  • drawFrame(ctx: any, drawX: any, drawY: any): void
  • Parameters

    • ctx: any
    • drawX: any
    • drawY: any

    Returns void

fromFrames

  • fromFrames(frames: any): void
  • Parameters

    • frames: any

    Returns void

fromImage

  • fromImage(imageUrl: any, frameCounts: any, cb: any): void
  • Parameters

    • imageUrl: any
    • frameCounts: any
    • cb: any

    Returns void

getSprite

  • getSprite(): HTMLCanvasElement
  • Returns HTMLCanvasElement

setFrames

  • setFrames(frames: any): void
  • Parameters

    • frames: any

    Returns void

updateFrames

  • updateFrames(frameWidth: any, frameHeight: any, frameCounts: any, frameProcessor: any): void
  • Parameters

    • frameWidth: any
    • frameHeight: any
    • frameCounts: any
    • frameProcessor: any

    Returns void

Static generateEmptyFrames

  • generateEmptyFrames(frameWidth: any, frameHeight: any, frameCounts: any): any
  • Parameters

    • frameWidth: any
    • frameHeight: any
    • frameCounts: any

    Returns any

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc