Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Desaturate" effect to a sprite, desaturates the color according to HSL

Hierarchy

  • Desaturate

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

factor

factor: number

The factor of the effect between 0-1

Methods

updatePixel

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