Class: DropShadowFilter

PIXI.filters~DropShadowFilter

Drop shadow filter.
originalfilter

new DropShadowFilter (options)

Name Type Description
options object optional

Filter options

Name Type Default Description
rotation number 45 optional

The angle of the shadow in degrees.

distance number 5 optional

Distance of shadow

color number 0x000000 optional

Color of the shadow

alpha number 0.5 optional

Alpha of the shadow

shadowOnly number false optional

Whether render shadow only

blur number 2 optional

Sets the strength of the Blur properties simultaneously

quality number 3 optional

The quality of the Blur filter.

kernels Array.<number> null optional

The kernels of the Blur filter.

pixelSize number | Array.<number> | PIXI.Point 1 optional

the pixelSize of the Blur filter.

resolution number PIXI.settings.FILTER_RESOLUTION optional

The resolution of the Blur filter.

See:

Extends

  • PIXI.Filter

Members

alpha number

The alpha of the shadow

Default Value:
  • 1

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 Array.<number>

Sets the kernels of the Blur Filter

pixelSize number | Array.<number> | 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