Class: AdjustmentFilter

PIXI.filters~AdjustmentFilter

The ability to adjust gamma, contrast, saturation, brightness, alpha or color-channel shift. This is a faster and much simpler to use than ColorMatrixFilter because it does not use a matrix.
originalfilter

new AdjustmentFilter (options)

Name Type Description
options object | number optional

The optional parameters of the filter.

Name Type Default Description
gamma number 1 optional

The amount of luminance

saturation number 1 optional

The amount of color saturation

contrast number 1 optional

The amount of contrast

brightness number 1 optional

The overall brightness

red number 1 optional

The multipled red channel

green number 1 optional

The multipled green channel

blue number 1 optional

The multipled blue channel

alpha number 1 optional

The overall alpha amount

See:

Extends

  • PIXI.Filter

Members

alpha number

The amount of alpha channel

Default Value:
  • 1

blue number

The amount of blue channel

Default Value:
  • 1

brightness number

The amount of brightness

Default Value:
  • 1

contrast number

The amount of contrast

Default Value:
  • 1

gamma number

The amount of luminance

Default Value:
  • 1

green number

The amount of green channel

Default Value:
  • 1

red number

The amount of red channel

Default Value:
  • 1

saturation number

The amount of saturation

Default Value:
  • 1