hex2hsl static method
Converts a hex string to HSL values.
Returns a list of doubles representing the HSL values. h, s, l
Implementation
static List<double> hex2hsl(hex) {
final List<int> rgb = hex2rgb(hex);
return rgb2hsl(rgb[0], rgb[1], rgb[2]);
}