colour.yellowness

colour.yellowness(XYZ, method=u'ASTM E313')[source]

Returns the yellowness \(W\) using given method.

Parameters:
  • XYZ (array_like) – CIE XYZ tristimulus values of sample.
  • method (unicode, optional) – {‘ASTM E313’, ‘ASTM D1925’}, Computation method.
Returns:

yellowness \(Y\).

Return type:

numeric or ndarray

References

Examples

>>> import numpy as np
>>> XYZ = np.array([95.00000000, 100.00000000, 105.00000000])
>>> yellowness(XYZ)  
11.0650000...
>>> method = 'ASTM D1925'
>>> yellowness(XYZ, method=method)  
10.2999999...