hsv2xy static method

List<double> hsv2xy(
  1. int h,
  2. double s,
  3. double v
)

Converts HSV values 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> hsv2xy(int h, double s, double v) {
  final List<int> rgb = hsv2rgb(h, s, v);
  return rgb2xy(rgb[0], rgb[1], rgb[2]);
}