distinct_colors | R Documentation |
This ensures all colors are distinct by packing the (visible part) of the CIELAB color space with the needed number of spheres, and using their centers to generate the colors.
distinct_colors( n, minimal_saturation = 33, minimal_lightness = 20, maximal_lightness = 80 )
n |
The requested (positive) number of colors. |
minimal_saturation |
Exclude colors whose saturation ( |
minimal_lightness |
Exclude colors whose lightnes ( |
maximal_lightness |
Exclude colors whose lightnes ( |
A list with two elements, name
containing the color names and lab
containing a matrix with a row per color and three columns containing the l
,
a
and b
coordinates of each color.
chameleon::distinct_colors(8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.