facelessuser / coloraide

A library to aid in using colors
https://facelessuser.github.io/coloraide
MIT License
194 stars 12 forks source link

Allow controlling the JND of gamut mapping #388

Closed facelessuser closed 10 months ago

facelessuser commented 10 months ago

Current gamut mapping has a set JND, but certain things, like tonal palettes, need to be able to gamut map tighter. The plugins should allow configuring this, and fit() should probably be able to handle additional options for a gamut map method.

facelessuser commented 10 months ago

This is really important for every day gamut mapping and specialized that may require more fine tuning. Tighter requirements may cause more iterations, and may not be desired as a default, but for some things, it may be desired, like tonal maps.