xy2hsl static method

List<double> xy2hsl(
  1. double x,
  2. double y
)

Converts xy coordinates in the CIE 1931 color space to HSL.

Returns a list of doubles representing the HSL values. h, s, l

Implementation

static List<double> xy2hsl(double x, double y) {
  final List<int> rgb = xy2rgb(x, y);
  return rgb2hsl(rgb[0], rgb[1], rgb[2]);
}