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.

l_hexcolor(color)

Arguments

color

a vector with color names

Value

a character vector with the 12 digit hexadecimal color strings.

Examples

p <- l_plot(1:2) p['color'] <- 'red' p['color']
#> [1] "#FFFF00000000" "#FFFF00000000"
l_hexcolor('red')
#> [1] "#FFFF00000000"