Skip to content

bulgePinch

const bulgePinch: EffectDefinition<BulgePinchHandle, BulgePinchOptions>

Defined in: effects/src/bulgePinch.ts:31

Lens-distortion bulge or pinch via pixi-filters’ BulgePinchFilter. Useful for fish-eye flourishes, telescope reveals, or stomach-punch hits.

setIntensity scales the configured strength from 0 (no distortion) to its full magnitude — preserving the sign, so a pinch-configured filter fades from flat → pinch (not flat → bulge → pinch).

setStrength rebases the full value while preserving the current intensity ratio so a fade in flight keeps animating against the new ceiling instead of snapping back to 1.