Function hslToRgb

  • Convert from HSL to nearest (rounded, half up)* RGB color.

    * Note: this spec was corrected, along with the spec of makePalette

    Parameters

    • hsl: Color

      HSL color, [h,s,l] tuple of numbers 0 <= h < 360 and 0 <= s,l <= 1

    Returns Color

    nearest RGB color, [r,g,b] tuple of integers 0 <= r,g,b <= 255