Interface: DropShadowFilterOptions

DropShadowFilterOptions

Options for the DropShadowFilter constructor.

Properties:
Name Type Default Description
alpha number 1

Coefficient for alpha multiplication.

blur number 2

The strength of the shadow's blur.

color ColorSource 0x000000

The color value of shadow.

kernels number[] null

The kernel size of the blur filter.

offset PointData {x:4,y:4}

The offset position of the drop-shadow relative to the original image.

pixelSize PointData | number[] | number {x:1,y:1}

The pixelSize of the Kawase Blur filter

quality number 4

The quality of the Blur Filter.

resolution number 1

The resolution of the Kawase Blur filter

shadowOnly boolean false

Hide the contents, only show the shadow.

Members

alpha number

Coefficient for alpha multiplication.

Default Value:
  • 1

blur number

The strength of the shadow's blur.

Default Value:
  • 2

color ColorSource

The color value of shadow.

Default Value:
  • 0x000000
Example
[0.0, 0.0, 0.0] = 0x000000

kernels number[]

The kernel size of the blur filter.

Default Value:
  • null

offset PointData

The offset position of the drop-shadow relative to the original image.

Default Value:
  • {x:4,y:4}

pixelSize PointData | number[] | number

The pixelSize of the Kawase Blur filter

Default Value:
  • {x:1,y:1}

quality number

The quality of the Blur Filter.

Default Value:
  • 4

resolution number

The resolution of the Kawase Blur filter

Default Value:
  • 1

shadowOnly boolean

Hide the contents, only show the shadow.

Default Value:
  • false