Function rgbToHsl

  • Convert the given sRGB color to an HSL color. Based on the EasyRGB pseudo-code.

    Parameters

    • color: Rgb

      The sRGB color.

    Returns Hsl

    An HSL color.