col2hex: convert color name to hex character string
Description
convert color name to hex character string
Usage
col2hex(cname, alpha = 1)
Value
a vector of hex color values, one per color name
Arguments
- cname
one or more color names, e.g. "red"
- alpha
the value of the alpha channel, ranging from 0 to 1 (default is 1)