File: alphablend.Rd

package info (click to toggle)
r-cran-vim 6.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,556 kB
  • sloc: cpp: 141; sh: 12; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
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}