color()
now maintains the names of the input vector, allowing plot()
to use the color names rather than the hex values when label = TRUE
. You can also provide label
with a custom set of color labels. Unnamed colors are labelled with their hex values (@gadenbuie, #27).
Printing color objects is now powered by {cli}
, which has superseded {crayon}
(jack-davison, #28).
best_contrast()
has been added, and can be used to find the best contrasted colors.contrast_ratio()
function to calculate contrast ratios between colors. (#18)modify_hcl()
function to modify individual HCL axes. (#20)clr_rotate()
now uses HCL instead of HSL as its color space for rotation. (#19)clr_lightness()
and clr_darken()
now uses HCL instead of HSL as its default color space. (#19)clr_alpha()
function to specify transparency. (#9)labels
argument to plot.colors()
to show hexcode in plot. (#8)clr_rotate()
’s argument degrees
now default to 0.clr_mix()
’s argument ratio
now correctly takes varied lengths as the argument.check_color_blindness()
to allow quick visual color deficiency examination. (#11)