R/col2alpha.R

Defines functions col2alpha

Documented in col2alpha

col2alpha <- function(color, alpha = 0.5){
  x <- col2rgb(color)[,1]
  rgb(x[1], x[2], x[3], 255*alpha, maxColorValue = 255)
}

Try the seqinr package in your browser

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

seqinr documentation built on April 6, 2023, 1:10 a.m.