v3.1.0
New features
This release introduces new gamut-related functions:
inGamut(mode)returns a function with which to check that a color is within the gamut of themodecolor space (#161); similar todisplayable(), but for any RGB-based color space.clampGamut(mode)returns a function with which to clip a color to the gamut of themodecolor space; similar toclampRgb()but for any RGB-based color space.toGamut(mode, ...)returns a function to gamut-map a color to themodecolor space (#168); similar toclampChromabut for any RGB-based color space.
Bug fixes
Fixes mapper() function when mode = null (See #194, thanks @bijela-gora!)