int2hsl static method

List<double> int2hsl(
  1. int integer
)

Converts an integer to HSL values.

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

Implementation

static List<double> int2hsl(int integer) {
  final List<int> rgb = int2rgb(integer);
  return rgb2hsl(rgb[0], rgb[1], rgb[2]);
}