distortBulge
distortBulge(
uv,center?,strength?,radius?):Node<"vec2">
Defined in: packages/nodes/src/distortion/distort.ts:50
Bulge distortion - pushes pixels away from center.
Parameters
Section titled “Parameters”Node <"vec2">
Input UV coordinates
center?
Section titled “center?”Vec2Input = ...
Bulge center point
strength?
Section titled “strength?”FloatInput = 0.3
Bulge strength (positive = bulge out)
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 bulged = distortBulge(uv, [0.5, 0.5], 0.3, 0.4)