enve.col.alpha | R Documentation |
Modify alpha in a color (or vector of colors).
enve.col.alpha(col, alpha = 1/2)
col |
Color or vector of colors. It can be any value supported by
|
alpha |
Alpha value to add to the color, from 0 to 1. |
Returns a color or a vector of colors in hex notation,
including alpha
.
Luis M. Rodriguez-R [aut, cre]
# Hexcode for a color by hexcode
enve.col.alpha("#009988", 3/4) # "#009988BF"
# Hexcode for a color by name
enve.col.alpha("white", 1/4) # "#FFFFFF3F"
# Hexcode for a color from other functions
enve.col.alpha(rainbow(3)) # "#FF00007F" "#00FF007F" "#0000FF7F"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.