Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Animation

Shared interface for Ending and Portrait animation.

Hierarchy

  • Animation

Implemented by

Index

Methods

createPlayer

  • Creates and returns an animation player for this animation. The actual drawing is done by the specified callback which is called for each frame and receives the image to render.

    Parameters

    • onDraw: function

      Callback to call on each frame update. This callback is responsible for actually showing the animation frame to the user.

    Returns AnimationPlayer

    The created animation player. You have to call the start() method on it to start the animation.

getHeight

  • getHeight(): number
  • Returns the animation height in pixels.

    Returns number

    The animation height in pixels.

getWidth

  • getWidth(): number
  • Returns the animation width in pixels.

    Returns number

    The animation width in pixels.

Generated using TypeDoc