col2hex: convert color name to hex character string

View source: R/color_plane.R

col2hexR 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


bbuchsbaum/colorplane documentation built on March 12, 2023, 8:11 a.m.