Options
All
  • Public
  • Public/Protected
  • All
Menu

Module CanvasTinter

Index

Variables

cacheStepsPerColorChannel

cacheStepsPerColorChannel: number

canUseMultiply

canUseMultiply: boolean

convertTintToImage

convertTintToImage: boolean

tintMethod

tintMethod: number

Functions

getTintedTexture

  • getTintedTexture(sprite: Sprite, color: number): HTMLCanvasElement
  • Parameters

    • sprite: Sprite
    • color: number

    Returns HTMLCanvasElement

roundColor

  • roundColor(color: number): number
  • Parameters

    • color: number

    Returns number

tintWithMultiply

  • tintWithMultiply(texture: Texture, color: number, canvas: HTMLCanvasElement): void
  • Parameters

    • texture: Texture
    • color: number
    • canvas: HTMLCanvasElement

    Returns void

tintWithOverlay

  • tintWithOverlay(texture: Texture, color: number, canvas: HTMLCanvasElement): void
  • Parameters

    • texture: Texture
    • color: number
    • canvas: HTMLCanvasElement

    Returns void

tintWithPerPixel

  • tintWithPerPixel(texture: Texture, color: number, canvas: HTMLCanvasElement): void
  • Parameters

    • texture: Texture
    • color: number
    • canvas: HTMLCanvasElement

    Returns void

Generated using TypeDoc