| lucent | R Documentation |
Convert a vector of solid colours to a vector of translucent ones (or vice versa)
lucent(col.pal=1, a=1)
col.pal |
vector of colours |
a |
alpha transparency value ( |
The function acts as a small wrapper to the rgb function.
Vector of transformed colours depending on the alpha transparancy value a.
Steve Martell, International Pacific Halibut Commission, Seattle WA
pickCol, testCol,
col2rgb, rgb
local(envir=.PBSmodEnv,expr={
oldpar = par(no.readonly=TRUE)
pbsfun = function(clrs=c("moccasin",rainbow(3))){
clrs = c(clrs,lucent(clrs,a=0.25))
testCol(clrs); invisible() }
pbsfun()
par(oldpar)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.