Skip to content

contrastSCurve

contrastSCurve(inputColor, amount): Node<"vec4">

Defined in: packages/nodes/src/color/contrast.ts:44

Apply S-curve contrast (smoother, more natural-looking). Uses smoothstep for a sigmoid-like curve.

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

amount

FloatInput

Contrast intensity (0 = no change, 1 = maximum)

Returns

Node<"vec4">

Color with S-curve contrast