newton.utils.color_linear_to_srgb#

newton.utils.color_linear_to_srgb(color)[source]#

Convert a linear RGB triple to sRGB/display encoding.

Parameters:

color (Sequence[float] | ndarray) – Linear RGB values. Negative components are clamped to zero before conversion.

Returns:

sRGB/display-encoded RGB triple.

Return type:

tuple[float, float, float]