Learn R Programming

tokenbrowser (version 0.1.6)

set_col: 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)

Value

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

Arguments

col

The name of the color

alpha

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

Examples

Run this code
set_col('red')
set_col('red', alpha=0.5)

Run the code above in your browser using DataLab