PIXI.filters.ZoomBlurFilter
class ZoomBlurFilter extends PIXI.Filter
The ZoomFilter applies a Zoom blur to an object.
Constructor
new PIXI.filters.ZoomBlurFilter(options: object) → {}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options | object |
<optional> |
Filter options to use. |
|
options.strength | number |
<optional> |
0.1 |
Sets the strength of the zoom blur effect |
options.center | PIXI.Point | number<Array> |
<optional> |
[0,0] |
The center of the zoom. |
options.innerRadius | number |
<optional> |
0 |
The inner radius of zoom. The part in inner circle won't apply zoom blur effect. |
options.radius | number |
<optional> |
-1 |
See |
options.maxKernelSize | number |
<optional> |
32 |
On older iOS devices, it's better to not go above |
Summary
Properties from ZoomBlurFilter
ZoomBlurFilterOptions |
Default constructor options. |
PIXI.Point | number<Array> |
Center of the effect. |
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> |
|
Methods inherited from Filter
void |
|
Public Properties
innerRadius: number = 0
Radius of the inner region not effected by blur.
radius: number = -1
Outer radius of the effect. The default value is -1
.
< 0.0
means it's infinity.