-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some colorspaces such as hsluv, okhsl and okhsv need to do gamut checking in a color space that is not their own space or their base space. For example hsluv needs to do gamut checking in the srgb color space. A gamutSpace can now be specified when constructing a ColorSpace and a gamutSpace property has beed added to ColorSpace. If a gamutSpace is not specified the following rules are used to assign the gamutSpace property: - if the color space is polar use the base space - if the color space is not polar use the current space Polar spaces that need to gamut check themselves (hpluv) can set the gamutSpace option to "self" to avoid gamut checking using the base space.
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters