diff --git a/CHANGES.md b/CHANGES.md index 39f73eb..3108388 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # ColorHelper +## 6.4.1 + +- **FIX**: Fix regression due to not accounting to API change when + upgrading to latest ColorAide. + ## 6.4.0 - **NEW**: Opt into Python 3.8. diff --git a/ch_picker.py b/ch_picker.py index a31f43b..2f65ff8 100644 --- a/ch_picker.py +++ b/ch_picker.py @@ -502,7 +502,7 @@ def get_channel(self, channel, label, color_filter, mode='undefined'): clone = self.color.clone() show_alpha = color_filter == 'alpha' - coord = alg.no_nan(clone[color_filter]) + coord = clone.get(color_filter, nans=False) if color_filter != 'hue': rounded = alg.round_half_up(coord, 2 if mode != 'hsluv' else 0) clone[color_filter] = rounded @@ -514,7 +514,7 @@ def get_channel(self, channel, label, color_filter, mode='undefined'): first = True while count: - coord = alg.no_nan(clone[color_filter]) - step + coord = clone.get(color_filter, nans=False) - step clone[color_filter] = coord if color_filter != "hue" and (coord < 0 or coord > (1 * scale)): @@ -564,7 +564,7 @@ def get_channel(self, channel, label, color_filter, mode='undefined'): clone.update(self.color) clone[color_filter] = rounded while count: - coord = alg.no_nan(clone[color_filter]) + step + coord = clone.get(color_filter, nans=False) + step clone[color_filter] = coord if color_filter != "hue" and (coord < 0 or coord > (1 * scale)): diff --git a/messages/recent.md b/messages/recent.md index a4566e8..c057d25 100644 --- a/messages/recent.md +++ b/messages/recent.md @@ -9,6 +9,7 @@ A restart of Sublime Text is **strongly** encouraged. Please report any issues as we _might_ have missed some required updates related to the upgrade to stable `coloraide`. + ## 6.4.0 - **NEW**: Opt into Python 3.8. diff --git a/support.py b/support.py index e8c6c6d..f589f54 100644 --- a/support.py +++ b/support.py @@ -5,7 +5,7 @@ import webbrowser import re -__version__ = "6.4.0" +__version__ = "6.4.1" __pc_name__ = 'ColorHelper' CSS = '''