Class SpriteSheetUtils

Index

Methods

Methods

public static addFlippedFrames(spriteSheet: SpriteSheet, horizontal?: boolean, vertical?: boolean, both?: boolean)

deprecated

Parameters

  • spriteSheet: SpriteSheet
  • horizontal?: boolean optional
  • vertical?: boolean optional
  • both?: boolean optional

public static extractFrame(spriteSheet: SpriteSheet, frameOrAnimation: number): HTMLImageElement

Parameters

Returns

HTMLImageElement

public static extractFrame(spriteSheet: SpriteSheet, frameOrAnimation: string): HTMLImageElement

Parameters

Returns

HTMLImageElement

public static mergeAlpha(rgbImage: HTMLImageElement, alphaImage: HTMLImageElement, canvas?: HTMLCanvasElement): HTMLCanvasElement

deprecated

Parameters

  • rgbImage: HTMLImageElement
  • alphaImage: HTMLImageElement
  • canvas?: HTMLCanvasElement optional

Returns

HTMLCanvasElement