mski_alpha: mski_alpha

mski_alphaR Documentation

mski_alpha

Description

Wrapper combining 'col2rgb()' and 'rgb()' for single colors

Originally called 'alpha()' in 'mskilab/bamUtils'

Usage

mski_alpha(col, alpha = FALSE)

Arguments

col

string Any of the three kinds of R color specifications, i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer i meaning palette()[i]

alpha

boolean indicating whether the alpha channel (opacity) values should be returned (default = FALSE)

Value

string


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.