Convert any valid R color specification to hexadecimal colors.
Examples
colToHex(c("tomato", "royalblue"))
#> [1] "#FF6347" "#4169E1"
colToHex("tomato", opacity = 0.5)
#> [1] "#FF634780"
# color numbers refer to the current palette
colToHex(1:3)
#> [1] "#000000" "#DF536B" "#61D04F"
