, 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.

  • rgb (tuple, list or ndarray of floats) – Nx3 or NxNx3 array of linear RGB values, last dim must be size == 3 specifying RBG values.

  • reverse (boolean) – If True, the reverse transfer function will convert sRGB -> linear RGB.


Array of transformed colors with same shape as input.

Return type


Back to top