Class: MotionBlurFilter

MotionBlurFilter

The MotionBlurFilter applies a Motion blur to an object.
originalfilter

new MotionBlurFilter (options)

Name Type Attributes Description
options MotionBlurFilterOptions <optional>

Options for the MotionBlurFilter constructor.

Extends

  • Filter

Members

DEFAULT_OPTIONS MotionBlurFilterOptions staticreadonly

Default values for options.

kernelSize number

The kernelSize of the blur filter. Must be odd number >= 5

Default Value:
  • 5

offset number

The offset of the blur filter

Default Value:
  • 0

velocity PointData

Sets the velocity of the motion for blur effect This should be a size 2 array or an object containing x and y values, you cannot change types once defined in the constructor

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

velocityX number

Sets the velocity of the motion for blur effect on the x axis

Default Value:
  • 0

velocityY number

Sets the velocity of the motion for blur effect on the x axis

Default Value:
  • 0