hex2xy static method

List<double> hex2xy(
  1. dynamic hex
)

Converts a hex string to xy coordinates in the CIE 1931 color space.

Returns a list of doubles representing the xy values. x, y, brightness

Implementation

static List<double> hex2xy(hex) {
  final List<int> rgb = hex2rgb(hex);
  return rgb2xy(rgb[0], rgb[1], rgb[2]);
}