• This function converts a color from RGB to HSL. Reference: https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB

    Parameters

    • RGB: vec3

      {vec3} A color expressed as Red (x [0, 1]), Green (y [0, 1]), and Blue (z [0, 1])

    Returns vec3

    The same color expressed as Hue (x [0, 360]), Saturation (y [0, 1]), and Lightness (z [0,1])