sort_colors_deprecated: Sort colors (deprecated)

sort_colors_deprecatedR Documentation

Sort colors (deprecated)

Description

Sort colors (deprecated)

Usage

sort_colors_deprecated(
  x,
  sort_by = c("h", "-c", "-l"),
  c_min = 4,
  grey_hue = 359,
  hue_offset = 0,
  ...
)

Details

This function is deprecated, please use colorjam::sort_colors().

This function is intended to be a very rapid method to sort colors, based upon hue, then chroma descending, then luminance descending.

Examples

x <- jamba::nameVector(colors());

## Basic color sort
c2 <- sort_colors_deprecated(x);
jamba::showColors(c2, main="cmin=4");

## Increase filtering of unsaturated colors
c3 <- sort_colors_deprecated(x, c_min=20);
jamba::showColors(c3, main="cmin=20");

## Increase filtering of unsaturated colors
c4 <- sort_colors_deprecated(x, c_min=50);
jamba::showColors(c4, main="cmin=50");


jmw86069/jamenrich documentation built on Feb. 3, 2024, 12:40 p.m.