Class: BulgePinchFilter

BulgePinchFilter

Bulges or pinches the image in a circle.
originalfilter

new BulgePinchFilter (options)

Name Type Attributes Description
options BulgePinchFilterOptions <optional>

Options for the BulgePinchFilter constructor.

Extends

  • Filter

Members

DEFAULT_OPTIONS BulgePinchFilterOptions staticreadonly

Default values for options.

center PointData

Sets the center of the effect in normalized screen coords. { x: 0, y: 0 } means top-left and { x: 1, y: 1 } mean bottom-right

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

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 radius of the circle of effect

Default Value:
  • 100

strength number

A value between -1 and 1 (-1 is strong pinch, 0 is no effect, 1 is strong bulge)

Default Value:
  • 1