Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Lighten" effect to a sprite, changes the lightness of the color according to HSL

Hierarchy

  • Lighten

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Lighten(factor?: number): Lighten

Properties

factor

factor: number

The factor of the effect between 0-1

Methods

updatePixel

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