psychopy.tools.colorspacetools.srgbTF¶
- psychopy.tools.colorspacetools.srgbTF(rgb, reverse=False, **kwargs)[source]¶
Apply sRGB transfer function (or gamma) to linear RGB values.
Input values must have been transformed using a conversion matrix derived from sRGB primaries relative to D65.
- Parameters:
- Returns:
Array of transformed colors with same shape as input.
- Return type:
ndarray