rgbObjToHsl()
The rgbObjToHsl
function allows you to convert an RGB object to its corresponding HSLA (Hue, Saturation, Lightness, Alpha) values.
Usage
Parameters
rgbObjToHsl(rgbObj)
Parameter | Type | Required | Description |
---|---|---|---|
rgbObj | RgbObj | true | An RGB object that represents a color in the RGBA (Red, Green, Blue, Alpha) color space. |
Return Value
The rgbObjToHsl
function returns an HSL object of the color value