col2hex {colorplane}R Documentation

convert color name to hex character string

Description

convert color name to hex character string

Usage

col2hex(cname, alpha = 1)

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)

Value

a vector of hex color values, one per color name


[Package colorplane version 0.5.0 Index]