l_hexcolor: Convert color names to their 12 digit hexadecimal color...

View source: R/l_ColorList.R

l_hexcolorR Documentation

Convert color names to their 12 digit hexadecimal color representation

Description

Color names in loon will be mapped to colors according to the Tk color specifications and are normalized to a 12 digit hexadecimal color representation.

Usage

l_hexcolor(color)

Arguments

color

a vector with color names

Value

a character vector with the 12 digit hexadecimal color strings.

See Also

as_hex6color, hex12tohex6, l_colorName

Examples

if(interactive()){

p <- l_plot(1:2)
p['color'] <- 'red'
p['color']

l_hexcolor('red')
}

loon documentation built on July 9, 2023, 5:48 p.m.