Function rgbToHsl

  • Convert from RGB to HSL color.

    Parameters

    • rgb: Color

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

    Returns Color

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