Convert a color in RGB format to HSL (Hue,Saturation,Light) format.
Arguments
- rgb.col
<integer>: an integer of the color's RGB code.
- alpha.bln
<logical>: whether the alpha layer should be returned. (Default FALSE)
Examples
Rgb2Hsl(c(235,176,16,127),alpha.bln=TRUE)
#> hue saturation light alpha
#> 43.836 0.873 0.492 0.498