int2xy static method

List<double> int2xy(
  1. int integer
)

Converts an integer 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> int2xy(int integer) {
  final List<int> rgb = int2rgb(integer);
  return rgb2xy(rgb[0], rgb[1], rgb[2]);
}