add_transparency.Rd
Add transparency to colors
add_transparency(col, transparency = 0)
col | A vector of colors. |
---|---|
transparency | Transparency, numeric value between 0 and 1. |
A vector of colors.
add_transparency("red", 0.5)#> [1] "#FF000080"add_transparency(1, 0.5)#> [1] "#00000080"add_transparency("#FF000080", 0.2)#> [1] "#FF0000CC"