Class: HslAdjustmentFilter

HslAdjustmentFilter

originalfilter

new HslAdjustmentFilter (options)

Name Type Attributes Default Description
options Partial<HslAdjustmentFilterOptions> <optional>

The optional parameters of the filter.

options.hue number <optional>
0

The amount of hue in degrees (-180 to 180)

options.saturation number <optional>
0

The amount of color saturation (-1 to 1)

options.lightness number <optional>
0

The amount of lightness (-1 to 1)

options.colorize boolean <optional>
false

Whether to colorize the image

options.alpha number <optional>
1

The amount of alpha (0 to 1)

See:

Extends

  • PIXI.Filter

Members

HslAdjustmentFilter.defaults HslAdjustmentFilterOptions staticreadonly

Default values for options.

Properties:
Name Type Default Description
alpha number 1

Alpha

colorize boolean false

Colorize

hue number 0

Hue

lightness number 0

Lightness

saturation number 0

Saturation

alpha boolean

Alpha (0-1)

Default Value:
  • 1

colorize boolean

Colorize (render as a single color)

Default Value:
  • false

hue number

Hue (-180 to 180)

Default Value:
  • 0

lightness boolean

Lightness (-1 to 1)

Default Value:
  • 0

saturation boolean

Saturation (-1 to 1)

Default Value:
  • 0