hsl method

Color hsl(
  1. dynamic h,
  2. [dynamic s,
  3. dynamic l]
)

Creates an opaque color object from hue, saturation and lightness (HSL) values.

Parameters: hue: An integer 0-360 representing degrees. saturation: A percentage 0-100% or number 0-1. lightness: A percentage 0-100% or number 0-1. Returns: color Example: hsl(90, 100%, 50%) Output: #80ff00

Implementation

Color hsl(dynamic h, [dynamic s, dynamic l]) {
  final color = hsla(h, s, l, 1.0);
  color?.value = 'hsl';
  return color;

// 3.8.0 20180729
//  hsl: function (h, s, l) {
//      var color = colorFunctions.hsla(h, s, l, 1.0);
//      if (color) {
//          color.value = 'hsl';
//          return color;
//      }
//  },
}