PIXI.filters.AdjustmentFilter
class AdjustmentFilter extends PIXI.Filter
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.
Constructor
new PIXI.filters.AdjustmentFilter(options: object | number) → {}
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 |
Summary
Properties from AdjustmentFilter
number |
The amount of alpha channel |
number |
The amount of blue channel |
number |
The amount of brightness |
number |
The amount of contrast |
number |
The amount of luminance |
number |
The amount of green channel |
number |
The amount of red channel |
number |
The amount of saturation |
Properties inherited from Filter
boolean |
|
PIXI.BLEND_MODES |
|
boolean |
If enabled is true the filter is applied, if false it will not. |
boolean |
|
PIXI.MSAA_QUALITY |
The samples of the filter. |
number |
|
number |
|
PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
PIXI.Program |
Program that the shader uses. |
Dict<any> |
|
Methods inherited from Filter
void |
|