Convert a color in hexadecimal to HSl (Hue,Saturation,Light) format.
Usage
Hex2Hsl(hex.col = NULL, alpha.bln = FALSE)
Arguments
- hex.col
<charcater>: a character of the color's hexadecimal code.
- alpha.bln
<logical>: whether the alpha layer should be returned. (Default FALSE)
Value
A vector of the color's HSL code.
Examples
Hex2Hsl("#ebb0107f",alpha.bln=TRUE)
#> hue saturation light alpha.alpha
#> 43.836 0.873 0.492 0.498