PIXI.filters.NoiseFilter
class NoiseFilter extends PIXI.Filter
A Noise effect filter.
original filter: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js
Constructor
new PIXI.filters.NoiseFilter(noise: number, seed: number) → {}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
noise | number |
<optional> |
0.5 |
The noise intensity, should be a normalized value in the range [0, 1]. |
seed | number |
<optional> |
A random seed for the noise generation. Default is |
Summary
Properties from NoiseFilter
number |
|
number |
A seed value to apply to the random noise generation. |
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 |
|
Public Properties
noise: number = 0.5
The amount of noise to apply, this value should be in the range (0, 1].
seed: number
A seed value to apply to the random noise generation. Math.random()
is a good value to use.