transparent_colors {DEXiR} | R Documentation |
A helper function for making colors
transparent.
transparent_colors(colors, percent = 50)
colors |
A vector of color numbers or names. |
percent |
Required color transparency, in the range |
Requires installed package "grDevices".
A vector of colors of the same length as colors
.
transparent_colors(c("red", "green", "blue"), 50)
# c("#FF00007F", "#00FF007F", "#0000FF7F")