Skip to content

Commit

Permalink
Merge branch 'upstream_master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByZach committed Feb 3, 2023
2 parents f845f5e + 7c8b4ce commit 885c50b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ColorHelper

## 6.1.1

- **FIX**: Fix broken gamut mapping logic after recent port of latest
`coloraide`.

## 6.1.0

- **NEW**: Update to ColorAide 1.5.
Expand Down
2 changes: 2 additions & 0 deletions lib/coloraide/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ def in_gamut(self, space: Optional[str] = None, *, tolerance: float = util.DEF_F
if c._space.GAMUT_CHECK is not None and not c.convert(c._space.GAMUT_CHECK).in_gamut(tolerance=tolerance):
return False

return gamut.verify(c, tolerance)

def mask(self, channel: Union[str, Sequence[str]], *, invert: bool = False, in_place: bool = False) -> 'Color':
"""Mask color channels."""

Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "6.1.0"
__version__ = "6.1.1"
__pc_name__ = 'ColorHelper'

CSS = '''
Expand Down

0 comments on commit 885c50b

Please sign in to comment.