palette: Create a palette
Description
A palette
is a class for color palettes built on vctrs
. It is represented
as a character vector of hexadecimal color codes. Named colors (like 'red'
)
are translated to hexadecimal color codes.
Usage
palette(x = character())validate_palette(x)
is_palette(x)
as_palette(x)
Arguments
- x
A character vector of colors