Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addAlphTrsp2col

"addAlphTrsp2col"


Description

Adds alpha transparency to a given color.

Usage

addAlphTrsp2col(col, alpha=255)

Arguments

col

any valid color

alpha

tranparancy; an integer value in [0,255]

Value

a color in rgb coordinates

Author(s)

Examples

## IGNORE_RDIFF_BEGIN
  addAlphTrsp2col(rgb(1,0.3,0.03), 25)
  ## gives "#FF4C0819" on 32bit and "#FF4D0819" on 64bit
## IGNORE_RDIFF_END
  addAlphTrsp2col("darkblue", 25)
  addAlphTrsp2col("#AAAAAAAA",25)
  palette(rainbow(6))
  addAlphTrsp2col(2, 25)

distrMod

Object Oriented Implementation of Probability Models

v2.8.4
LGPL-3
Authors
Matthias Kohl [aut, cph], Peter Ruckdeschel [cre, cph], R Core Team [ctb, cph] (for source file 'format.perc')
Initial release
2020-03-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.