Class: ShockwaveFilter

ShockwaveFilter

Create a visual wrinkle effect by like a pond or blast wave.
originalfilter

original filter

new ShockwaveFilter (options)

Name Type Attributes Description
options ShockwaveFilterOptions <optional>

Options for the ShockwaveFilter constructor.

Extends

  • Filter

Members

DEFAULT_OPTIONS ShockwaveFilterOptions staticreadonly

Default shockwave filter options

Properties:
Name Type Default Description
amplitude number 30

The amplitude of the shockwave

brightness number 1

The brightness of the shockwave

center

The x and y center coordinates to change the position of the center of the circle of effect.

radius number -1

The maximum radius of shockwave. less than 0 means the max is an infinite distance

speed number 500

The speed about the shockwave ripples out. The unit is pixel-per-second

wavelength number 160

The wavelength of the shockwave

amplitude number

The amplitude of the shockwave

Default Value:
  • 30

brightness number

The brightness of the shockwave

Default Value:
  • 1

center PointData

The x and y center coordinates to change the position of the center of the circle of effect.

Default Value:
  • [0,0]

centerX number

Sets the center of the effect in normalized screen coords on the x axis

Default Value:
  • 0

centerY number

Sets the center of the effect in normalized screen coords on the y axis

Default Value:
  • 0

radius number

The maximum radius of shockwave. less than 0 means the max is an infinite distance

Default Value:
  • -1

speed number

The speed about the shockwave ripples out. The unit is pixel-per-second

Default Value:
  • 500

time number

Sets the elapsed time of the shockwave. It could control the current size of shockwave.

wavelength number

The wavelength of the shockwave

Default Value:
  • 160