How do gamut ranges interact with ColorSpace#inGamut()
?
#29
Labels
api-design
Issues related to API shape
Milestone
ColorSpace#inGamut()
?
#29
In #4, we changed the color space coords to specify metadata instead of just a list of names.
One piece of this metadata is a gamut range, through
min
andmax
properties.However, color spaces also have an
inGamut()
method.How do these interact?
min
andmax
from the coord spec.colorSpace.inGamut()
is now the only way to check if a color is in gamut.colorSpace.inGamut()
is not specified, it is generated based on these ranges. Otherwise, these ranges are ignored.colorSpace.inGamut()
. None of the color spaces we support rn needs it (they can be served just fine with range checking), I think it was primarily added to cater to ICC profile use cases.The text was updated successfully, but these errors were encountered: