Convert a color in hexadecimal format.
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)
Examples
Col2Hex(c(43.8,0.873,0.492,0.498),alpha.bln=TRUE)
#> [1] "#61d04fff" "#ffffff00" "#ffffff00" "#ffffff00"