• Clamps a value to the unit range [0, 1]. Equivalent to clamp(value, 0, 1) but inlined so call sites read as "clamp to unit range" without binding 0 and 1 arguments explicitly — useful for colour channels, opacity, alpha masks, and any other normalised-range scalar.

    Parameters

    • value: number

    Returns number