Add alpha transparency to hex colors
Examples
add_alpha("#FF0000", 0.5) # Semi-transparent red
#> [1] "#FF00007F"
add_alpha(c("#FF0000", "#00FF00"), 0.7)
#> [1] "#FF0000B2" "#00FF00B2"
Add alpha transparency to hex colors
add_alpha("#FF0000", 0.5) # Semi-transparent red
#> [1] "#FF00007F"
add_alpha(c("#FF0000", "#00FF00"), 0.7)
#> [1] "#FF0000B2" "#00FF00B2"