setcolalpha: Set alpha channel for colours

Description Usage Arguments Value Author(s) Examples

Description

Set or modify the alpha chanels for colour specification

Usage

1
setcolalpha(col, alpha = "#40")

Arguments

col

a colour specification, as 7 or 9 character hex specifcation (e.g. '#2050A0')

alpha

a hex specification for the alpha channel (e.g. '#80')

Value

a modified colour specifcation

Author(s)

G. Sawitzki gsawitzki@r-forge.r-project.org

Examples

1
2
3
4
5
6
7
col <- "#0A0B0C"
setcolalpha(col)

col <- "#0A0B0C10"
setcolalpha(col)

setcolalpha(col, alpha='#80')

sintro documentation built on May 2, 2019, 5:26 p.m.