Skip to content

bulgePinch

const bulgePinch: EffectDefinition<BulgePinchHandle, BulgePinchOptions>

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

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

center and radius are in the host’s local coordinates and are converted to the rasterized filter region every frame, so the lens stays on the point the game names at any window size, fit ratio or pixel density.

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.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/effects.md.