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