Convert a color in RGB format to hexadecimal 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
Rgb2Hex(c(235,176,16,127),alpha.bln=TRUE)
#> [1] "#ebb0107f"