Coloraide

Latest version: v4.0

Safety actively analyzes 675360 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 18

3.1

- **NEW**: Increase accuracy of the experimental ray tracing gamut mapping algorithm.
- **NEW**: Add generic gamut mapping algorithm that employs ray tracing method that can be used with any LCh
perceptual space.
- **NEW**: Ray tracing gamut mapping algorithm parameter `traces` will no longer do anything as the approach no longer
has variable passes after new accuracy enhancements.
- **FIX**: Jzazbz bug was fixed that would result in a divide by zero failure.

3.0.1

- **FIX**: Don't cache coercion of non-RGB space to RGB space in ray tracing gamut mapping algorithm as the underlying
color object could change underneath.

3.0

- **BREAK**: The CSS HDR spec now defines the polar spaces such as JzCzhz `color()` with hue channels that support
traditional hue syntax instead of percentages. Updated all polar spaces that are represented in the `color()` format
to support this change. This is likely low impact as using percentages for hues is fairly uncommon.
- **BREAK**: Remove previously deprecated functions: `algebra.apply`, `algebra.no_nans`, `algebra.no_nan`,
`algebra.is_nan`, `Labish.labish_names`, `Labish.labish_indexes`, `LChish.lchish_names`, and
`LCHish.lchish_indexes`. These were mainly used internally, so breakage is likely low.
- **NEW**: `jzazbz`, `jzczhz`, `ictcp`, `rec2100-pq`, and `rec2100-hlg` are now formally recognized, and by default
serialized, without the `--` prefix as all the spaces are now part of the official HDR specification in CSS.
Previously, the spec was unofficial. `--` prefixed names will still be recognized, but at some future time `--`
support will be removed for these spaces. Additionally, these spaces are now registered by default.
- **NEW**: ∆E methods `z` and `itp` are now registered by default as their associated color spaces are now registered
by default as well.
- **NEW**: Color space channel flags `FLG_PERCENT` and `FLG_OPT_PERCENT` are deprecated and no longer used. They are
still present, but will be removed in the future.
- **NEW**: Update CSS percentage input/output ranges for `jzazbz`, `jzczhz`, and `ictcp` to match the CSS HDR spec.
- **NEW**: Ray tracing gamut mapping algorithms have been added: `oklch-raytrace` and `lch-raytrace`.
- **NEW**: RGB spaces now expose a `linear()` function on the underlying class to specify if they have a linear
equivalent.
- **NEW**: Adjust inheritance order of RGB spaces. Previously, many inherited from `sRGB`, now they inherit from
`sRGBLinear`.
- **NEW**: Add `rec2100-linear`, essentially and alias for `rec2020-linear`, that is specified in the CSS HDR
specification.
- **FIX**: Ensure that when using discrete interpolation that spline based interpolations are truly discrete.

2.16

- **NEW**: Gamut mapping plugins now must accept a `space` parameter and the color will not already be in the desired
gamut color space. This change was specifically made in order to fix a bug with HCT gamut mapping.
- **FIX**: Fix corner cases in HCT gamut mapping that would struggle with colors with high chroma and low lightness.

2.15.1

- **FIX**: Small regression related to indirectly gamut mapping in another space other than its own.

2.15

- **BREAK**: ∆E HCT used an extremely small JND by default to yield tonal palettes that were comparable to Google's
Material. This was not inline with other gamut mapping function defaults. The default is now a more appropriate
value of `2`. Users that relied on ∆E HCT to help generate tonal pallets with HCT should now use the `jnd` parameter
to set the JND to `0.02` in order to generate tonal pallets more like Google.
- **NEW**: `fit()` now accepts a `jnd` option to control the JND limit when gamut mapping with `lch-chroma`,
`oklch-chroma`, and `hct-chroma`.
- **NEW**: `to_string()` can now accept a dictionary of arguments to control gamut mapping via the `fit` argument.
- **FIX**: Update `lch-chroma` epsilon to be consistent with other gamut mapping plugin conventions.

Page 2 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.