R/alphaTransp.R

Defines functions addAlphTrsp2col

Documented in addAlphTrsp2col

### add alpha.transparency to given color

addAlphTrsp2col <- function(col, alpha=255){
   do.call(rgb,as.list(c(col2rgb(col)[,1],max=255,alpha=alpha)))
}

Try the distrMod package in your browser

Any scripts or data that you put into this service are public.

distrMod documentation built on Nov. 16, 2022, 9:07 a.m.