set_col: Transpose a color into the string format used in html...

Description Usage Arguments Value Examples

View source: R/colorize.r

Description

Transpose a color into the string format used in html attributes

Usage

1
set_col(col, alpha = 1)

Arguments

col

The name of the color

alpha

Optionally, the alpha (transparency), with 0 being fully transparent and 1 being fully colorized.

Value

The string used to specify a color in an html tag attribute

Examples

1
2
set_col('red')
set_col('red', alpha=0.5)

kasperwelbers/tokenbrowser documentation built on May 3, 2021, 8:33 a.m.