distortPinch
distortPinch(
uv,center,strength,radius):Node<"vec2">
Defined in: packages/nodes/src/distortion/distort.ts:17
Pinch distortion - pulls pixels toward center.
Parameters
uv
Node<"vec2">
Input UV coordinates
center
Vec2Input = ...
Pinch center point (default: [0.5, 0.5])
strength
FloatInput = 0.5
Pinch strength (positive = pinch in, negative = expand)
radius
FloatInput = 0.5
Effect radius in UV space
Returns
Node<"vec2">
Distorted UV coordinates
Example
const pinched = distortPinch(uv, [0.5, 0.5], 0.5, 0.5)