colour.RGB_luminance_equation#
- colour.RGB_luminance_equation(primaries: ArrayLike, whitepoint: ArrayLike) str [source]#
Return the luminance equation from given primaries and whitepoint.
- Parameters:
primaries (ArrayLike) – Primaries chromaticity coordinates.
whitepoint (ArrayLike) – Illuminant / whitepoint chromaticity coordinates.
- Returns:
Luminance equation.
- Return type:
Examples
>>> p = np.array([0.73470, 0.26530, 0.00000, 1.00000, 0.00010, -0.07700]) >>> whitepoint = np.array([0.32168, 0.33767]) >>> RGB_luminance_equation(p, whitepoint) 'Y = 0.3439664...(R) + 0.7281660...(G) + -0.0721325...(B)'