Skip to content

distortPinch(uv, center?, strength?, radius?): Node <"vec2">

Defined in: packages/nodes/src/distortion/distort.ts:17

Pinch distortion - pulls pixels toward center.

Node <"vec2">

Input UV coordinates

Vec2Input = ...

Pinch center point (default: [0.5, 0.5])

FloatInput = 0.5

Pinch strength (positive = pinch in, negative = expand)

FloatInput = 0.5

Effect radius in UV space

Node <"vec2">

Distorted UV coordinates

const pinched = distortPinch(uv, [0.5, 0.5], 0.5, 0.5)