Class: DropShadowFilter

DropShadowFilter

Drop shadow filter.
originalfilter

new DropShadowFilter (options)

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.

See:

Extends

  • PIXI.Filter

Members

DropShadowFilter.defaults DropShadowFilterOptions staticreadonly

Default constructor options.

alpha number

The alpha of the shadow

Default Value:
  • 1

angle number

Angle of the shadow in degrees.

Default Value:
  • 45

blur number

The blur of the shadow

Default Value:
  • 2

color number

The color of the shadow.

Default Value:
  • 0x000000

distance number

Distance offset of the shadow

Default Value:
  • 5

kernels number[]

Sets the kernels of the Blur Filter

pixelSize number | number<Array> | PIXI.Point

Sets the pixelSize of the Kawase Blur filter

Default Value:
  • 1

quality number

Sets the quality of the Blur Filter

Default Value:
  • 4

resolution number

The resolution of the filter.

Default Value:
  • PIXI.settings.FILTER_RESOLUTION

rotation number

The angle of the shadow in degrees

Default Value:
  • 2

shadowOnly boolean

Hide the contents, only show the shadow.