1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/alphablend.R
\name{alphablend}
\alias{alphablend}
\title{Alphablending for colors}
\usage{
alphablend(col, alpha = NULL, bg = NULL)
}
\arguments{
\item{col}{a vector specifying colors.}
\item{alpha}{a numeric vector containing the alpha values (between 0 and 1).}
\item{bg}{the background color to be used for alphablending. This can be
used as a workaround for graphics devices that do not support
semitransparent colors.}
}
\value{
a vector containing the semitransparent colors.
}
\description{
Convert colors to semitransparent colors.
}
\examples{
alphablend("red", 0.6)
}
\author{
Andreas Alfons
}
\keyword{color}
|