xyzToRgb static method
XYZ coordinates are ranging in 0;1
and RGB coordinates in 0;1
range.
@param tuple An array containing the color's X,Y and Z values.
@return An array containing the resulting color's red, green and blue.
Implementation
static List<double> xyzToRgb(List<double> tuple) {
return [
fromLinear(dotProduct(m[0], tuple)),
fromLinear(dotProduct(m[1], tuple)),
fromLinear(dotProduct(m[2], tuple))
];
}