PIXI.filters.OldFilmFilter
class OldFilmFilter extends PIXI.Filter
The OldFilmFilter applies a Old film effect to an object.
Constructor
new PIXI.filters.OldFilmFilter(options: object | number, seed: number) → {}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options | object | number |
<optional> |
The optional parameters of old film effect.
When options is a number , it will be |
|
options.sepia | number |
<optional> |
0.3 |
The amount of saturation of sepia effect,
a value of |
options.noise | number |
<optional> |
0.3 |
Opacity/intensity of the noise effect between |
options.noiseSize | number |
<optional> |
1.0 |
The size of the noise particles |
options.scratch | number |
<optional> |
0.5 |
How often scratches appear |
options.scratchDensity | number |
<optional> |
0.3 |
The density of the number of scratches |
options.scratchWidth | number |
<optional> |
1.0 |
The width of the scratches |
options.vignetting | number |
<optional> |
0.3 |
The radius of the vignette effect, smaller values produces a smaller vignette |
options.vignettingAlpha | number |
<optional> |
1.0 |
Amount of opacity of vignette |
options.vignettingBlur | number |
<optional> |
0.3 |
Blur intensity of the vignette |
seed | number |
<optional> |
0 |
A see value to apply to the random noise generation |
Summary
Properties from OldFilmFilter
OldFilmFilterOptions |
Default constructor options |
number |
|
number |
|
number |
|
number |
|
number |
|
number |
A see value to apply to the random noise generation |
number |
|
number |
|
number |
|
number |
|
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> |
|
Public Properties
scratchDensity: number = 0
The density of the number of scratches
sepia: number = 0
The amount of saturation of sepia effect,
a value of 1
is more saturation and closer to 0
is less,
and a value of 0
produces no sepia effect
vignetting: number = 0
The radius of the vignette effect, smaller values produces a smaller vignette