| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
object |
<optional> |
Filter options |
|
options.rotation |
number |
<optional> |
45 |
The angle of the shadow in degrees. |
options.distance |
number |
<optional> |
5 |
Distance of shadow |
options.color |
number |
<optional> |
0x000000 |
Color of the shadow |
options.alpha |
number |
<optional> |
0.5 |
Alpha of the shadow |
options.shadowOnly |
boolean |
<optional> |
false |
Whether render shadow only |
options.blur |
number |
<optional> |
2 |
Sets the strength of the Blur properties simultaneously |
options.quality |
number |
<optional> |
3 |
The quality of the Blur filter. |
options.kernels |
Array<number> |
<optional> |
null |
The kernels of the Blur filter. |
options.pixelSize |
number | number<Array> | PIXI.Point |
<optional> |
1 |
the pixelSize of the Blur filter. |
options.resolution |
number |
<optional> |
PIXI.settings.FILTER_RESOLUTION |
The resolution of the Blur filter. |
Extends
- PIXI.Filter
Members
Default constructor options.
The alpha of the shadow
- Default Value:
- 1
Angle of the shadow in degrees.
- Default Value:
- 45
The blur of the shadow
- Default Value:
- 2
The color of the shadow.
- Default Value:
- 0x000000
Distance offset of the shadow
- Default Value:
- 5
Sets the kernels of the Blur Filter
Sets the pixelSize of the Kawase Blur filter
- Default Value:
- 1
Sets the quality of the Blur Filter
- Default Value:
- 4
The resolution of the filter.
- Default Value:
- PIXI.settings.FILTER_RESOLUTION
The angle of the shadow in degrees
- Default Value:
- 2
Hide the contents, only show the shadow.

