powered by
Transpose a color into the string format used in html attributes
set_col(col, alpha = 1)
The string used to specify a color in an html tag attribute
The name of the color
Optionally, the alpha (transparency), with 0 being fully transparent and 1 being fully colorized.
set_col('red') set_col('red', alpha=0.5)
Run the code above in your browser using DataLab