deg2Color function

Color deg2Color(
  1. double alpha,
  2. double hue,
  3. double saturation,
  4. double lightness,
)

Implementation

Color deg2Color(
  double alpha,
  double hue,
  double saturation,
  double lightness,
) {
  HSLColor hsl = HSLColor.fromAHSL(alpha, hue % 360, saturation, lightness);
  return hsl.toColor();
}