newton.utils.color_srgb_to_linear#

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

Convert an sRGB/display RGB triple to linear Rec.709.

Parameters:

color (Sequence[float] | ndarray) – RGB values in sRGB/display encoding. Negative components are clamped to zero before conversion.

Returns:

Linear RGB triple.

Return type:

tuple[float, float, float]