This is a simple package for converting colors from the Go standard library and colors specified by RGB color components as bytes (within range [0-255]) into x
and y
coordinates on the CIE 1931 chromaticity diagram.
The image shown here shows the transformation only approximately, since the diagram was cut manually in a graphical editor.
See tests to get an idea how to use this package.