PIXI.filters.ShockwaveFilter
class ShockwaveFilter extends PIXI.Filter
The ShockwaveFilter class lets you apply a shockwave effect.


Constructor
new PIXI.filters.ShockwaveFilter(center: PIXI.Point | number<Array>, options: object, time: number) → {}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| center | PIXI.Point | number<Array> |
<optional> |
[0.5, 0.5] |
See |
| options | object |
<optional> |
The optional parameters of shockwave filter. |
|
| options.amplitude | number |
<optional> |
0.5 |
See `amplitude`` property. |
| options.wavelength | number |
<optional> |
1.0 |
See |
| options.speed | number |
<optional> |
500.0 |
See |
| options.brightness | number |
<optional> |
8 |
See |
| options.radius | number |
<optional> |
4 |
See |
| time | number |
<optional> |
0 |
See |
Summary
Properties from ShockwaveFilter
| ShockwaveFilterOptions |
Default constructor options. |
| number |
The amplitude of the shockwave. |
| number |
The brightness of the shockwave. |
| PIXI.Point | number<Array> |
|
| number |
|
| number |
|
| number |
|
| number |
The wavelength of the shockwave. |
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
center: PIXI.Point | number<Array>
Sets the center of the shockwave in normalized screen coords. That is (0,0) is the top-left and (1,1) is the bottom right.
radius: number
The maximum radius of shockwave.
< 0.0 means it's infinity.
speed: number
The speed about the shockwave ripples out.
The unit is pixel/second
time: number
Sets the elapsed time of the shockwave. It could control the current size of shockwave.