set_col {tokenbrowser}R Documentation

Transpose a color into the string format used in html attributes

Description

Transpose a color into the string format used in html attributes

Usage

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

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

[Package tokenbrowser version 0.1.5 Index]