PIXI.filters.DropShadowFilter
class DropShadowFilter extends PIXI.Filter
Drop shadow filter.


Constructor
new PIXI.filters.DropShadowFilter(options: object) → {}
| 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. |
Summary
Properties from DropShadowFilter
| DropShadowFilterOptions |
Default constructor options. |
| number |
|
| number |
Angle of the shadow in degrees. |
| number |
|
| number |
|
| number |
|
| number[] |
Sets the kernels of the Blur Filter |
| number | number<Array> | PIXI.Point |
Sets the pixelSize of the Kawase Blur filter |
| number |
|
| number |
|
| number |
|
| boolean |
Hide the contents, only show the shadow. |
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 |
|
| 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
static defaults: DropShadowFilterOptions
Default constructor options.
pixelSize: number | number<Array> | PIXI.Point = 1
Sets the pixelSize of the Kawase Blur filter
resolution: number = PIXI.settings.FILTER_RESOLUTION
The resolution of the filter.