Converts a color represented as a red-green-blue tuple (each value from 0 to 255) into an XYZ tuple. This describes a point in the CIE XYZ color space.
This calculates a distance between two colors. The smaller the distance, the closer the colors should appear to the human eye. A distance of 10 is reasonably close that it could be called the same color.
This function is not symmetric in red, green, and blue, so it is important to pass red, green, and blue components of the colors in the proper order. The first three arguments are red, green and blue for the first color, respectively, and the second three arguments are red green and blue for the second color, respectively.
Converts an XYZ-tuple (in the CIE XYZ colorspace) into a list of values representing an RGB-tuple.
Determines if val an xyz color record.
Extracts the x component of xyz.
Extracts the y component of xyz.
Extracts the z component of xyz.