Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Darken" effect to a sprite, changes the darkness of the color according to HSL

Hierarchy

  • Darken

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Darken(factor?: number): Darken

Properties

factor

factor: number

The factor of the effect between 0-1

Methods

updatePixel

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