Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Saturate" effect to a sprite, saturates the color according to HSL

Hierarchy

  • Saturate

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Saturate(factor?: number): Saturate

Properties

factor

factor: number

The factor of the effect between 0-1

Methods

updatePixel

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