- clamp
Clamp a value to an interval.
- lerp
Linear interpolation.
- mod
Return a mod b. This differs from the % operator with respect to negative
numbers.
- bias
Apply a bias to a number in the unit interval, moving numbers towards 0 or 1
according to the bias p
- bilinearInterpolate
Bilinear interpolation of ARGB values.
- mixColors
Linear interpolation of ARGB values.
- premultiply
Premultiply a block of pixels
- smoothPulse
A smoothed pulse function. A cubic function is used to smooth the step between
two thresholds.
- smoothStep
A smoothed step function. A cubic function is used to smooth the step between
two thresholds.
- spline
Compute a Catmull-Rom spline, but with variable knot spacing.
- triangle
The triangle function. Returns a repeating triangle shape in the range 0..1 with
wavelength 1.0
- unpremultiply
Premultiply a block of pixels