Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Colorize" effect to a sprite, changing the color channels of all the pixels to an average of the original color and the provided color

Hierarchy

  • Colorize

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

color

color: Color

The color to apply to the sprite

Methods

updatePixel

  • updatePixel(x: number, y: number, imageData: ImageData): void