File: add_transparency.rd

package info (click to toggle)
r-cran-circlize 0.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,312 kB
  • sloc: makefile: 8
file content (25 lines) | stat: -rw-r--r-- 426 bytes parent folder | download
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
\name{add_transparency}
\alias{add_transparency}
\title{
Add transparency to colors
}
\description{
Add transparency to colors
}
\usage{
add_transparency(col, transparency = 0)
}
\arguments{

  \item{col}{a vector of colors}
  \item{transparency}{transparency, numeric value between 0 and 1}

}
\value{
A vector of colors
}
\examples{
add_transparency("red", 0.5)
add_transparency(1, 0.5)
add_transparency("#FF000080", 0.2)
}