Convert a color in HSL (Hue,Saturation,Light) format.
Usage
Col2Hsl(color.col = NULL, alpha.bln = FALSE)
Arguments
- color.col
<charcater>: a vector of the color's present in base R colors().
- alpha.bln
<logical>: whether the alpha layer should be returned. (Default FALSE)
Value
A vector of the color's hsl code.
Examples
Col2Hsl("#ebb0107f",alpha.bln=TRUE)
#> [,1]
#> hue 43.836
#> saturation 0.873
#> light 0.492
#> alpha.alpha 0.498