Class: AdjustmentFilter

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 Attributes Default Description
options object | number <optional>

The optional parameters of the filter.

options.gamma number <optional>
1

The amount of luminance

options.saturation number <optional>
1

The amount of color saturation

options.contrast number <optional>
1

The amount of contrast

options.brightness number <optional>
1

The overall brightness

options.red number <optional>
1

The multipled red channel

options.green number <optional>
1

The multipled green channel

options.blue number <optional>
1

The multipled blue channel

options.alpha number <optional>
1

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