parabola

Last modified: Jun 30, 2024

A function that remaps the [0,1] interval into the [0,1] interval. The corners are mapped to 0 and the center to 1. Reference: {@link https://iquilezles.org/articles/functions/}.

ParameterTypeDefault Value
xNode<float>
kNode<float>

Returns

Node<float>

gain

A function that remaps the [0,1] interval into the [0,1] interval. Expands the sides and compresses the center, and keeps 0.5 mapped to 0.5. Reference: {@link https://iquilezles.org/articles/functions/}.

ParameterTypeDefault Value
xNode<float>
kNode<float>

Returns

Node<float>

pcurve

A function that remaps the [0,1] interval into the [0,1] interval. A generalization of the parabola(). Keeps the corners mapped to 0 but allows the control of the shape one either side of the curve. Reference: {@link https://iquilezles.org/articles/functions/}.

ParameterTypeDefault Value
xNode<float>
aNode<float>
bNode<float>

Returns

Node<float>

sinc

A phase shifted sinus curve that starts at zero and ends at zero, with bouncing behavior. Reference: {@link https://iquilezles.org/articles/functions/}.

ParameterTypeDefault Value
xNode<float>
kNode<float>

Returns

Node<float>