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 themode
color 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 themode
color space; similar toclampRgb()
but for any RGB-based color space.toGamut(mode, ...)
returns a function to gamut-map a color to themode
color space (#168); similar toclampChroma
but for any RGB-based color space.
Bug fixes
Fixes mapper()
function when mode = null
(See #194, thanks @bijela-gora!)