l_colRemoveAlpha | R Documentation |
Colors in the standard tk used by loon do not allow for alpha transparency.
This function allows loon to use color palettes (e.g. l_setColorList
) that
produce colors with alpha transparency by simply using only the rgb.
l_colRemoveAlpha(col)
col |
a vector of colors (potentially) containing an alpha level |
x <- l_colRemoveAlpha(rainbow(6))
# Also works with ordinary color string representations
# since it just extracts the rgb values from the colors.
x <- l_colRemoveAlpha(c("red", "blue", "green", "orange"))
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.