hsl2xy static method

List<double> hsl2xy(
  1. int h,
  2. double s,
  3. double l
)

Converts HSL 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> hsl2xy(int h, double s, double l) {
  final List<int> rgb = hsl2rgb(h, s, l);
  return rgb2xy(rgb[0], rgb[1], rgb[2]);
}