rgbToHsl
Function: rgbToHsl()
Section titled “Function: rgbToHsl()”function rgbToHsl( r, g, b): Vec3Given values for an RGB color convert to and return a valid HSL value
Parameters
Section titled “Parameters”number
Red value in RGB
number
Green value in RGB
number
Blue value in RGB
Returns
Section titled “Returns”an array in the order of hue, saturation, light numerical values