The ColorTools package has seen a few changes in this release.
There are five new commands relating to ColorTools[Color] objects: Chroma, Hue, Luma, ToPlotColor, and ToRGB. In addition, the Darken and Lighten commands both accept a new option called best. These commands and options can be used as follows.
| (7.1) |
| (7.2) |
| (7.3) |
| (7.4) |
| (7.5) |
| (7.6) |
| (7.7) |
It is clear that the Darken and Lighten commands change the colors nonlinearly in this color space.
The new DisplayPalette command provides a helpful way to view the colors in a palette by displaying the names and associated colors in a table. This command is used on the Plot Color Names help page as well as on the help pages for the predefined color palettes, which are listed on the ColorTools page in the List of Color Collections section.
There are six other new commands relating to ColorTools[Palette] objects: GetPaletteType, GetColors, KnownColor, Lookup, numcolors, and numelems. They can be used as follows.
Suppose we find a color we particularly like in the sorted list of colors, somewhere in the middle of the palette. We can look it up in the original palette.
| (7.8) |
| (7.9) |
| (7.10) |