Coloraide

Latest version: v4.0

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

Scan your dependencies

Page 7 of 18

1.8.2

- **FIX**: Ensure Brettel CVD approach uses Judd-Vos CMFs
- **FIX**: Fix some exception messages.

1.8.1

- **FIX**: Ensure Judd-Vos correction is applied to linear RGB to LMS conversion for CVD.
- **FIX**: Fix outdated API information in docs.

1.8

1.8.0

- **NEW**: Modern sRGB, HSL, and HWB should allow mixed percentage and numbers. HSL and HWB percentages in the `hsl()`
and `hwb()` formats respectively will resolve to numbers in the range [0, 100]. These changes reflect the latest
changes in the CSS Level 4 Color spec.
- **NEW**: HSL and HWB can serialize to a modern syntax that does not use percentages, but the default still uses
percentages.
- **NEW**: Rework CSS parsing for better performance.
- **FIX**: Handle some parsing corner cases that are handled by browsers, but not by ColorAide. For example,
`color(srgb 1-0.5.4)` should parse as `color(srgb 1 -0.5 0.4)`.
- **FIX**: Ensure that `COLOR_FORMAT` is respected.

1.7.1

- **FIX**: Ensure CAM16 spaces mirrors positive and negative percentages for `a` and `b` components.
- **FIX**: Since the CAM16 JMh model can not predict achromatic colors with negative lightness and, more importantly,
negative lightness is not useful, limit the lower end of lightness in CAM16 spaces to zero.
- **FIX**: When a CAM16 JMh (or HCT) color's chroma, when not discounting illuminance, has chroma drop below the actual
ideal achromatic chroma threshold, just use the ideal chroma to ensure better conversion back to XYZ.
- **FIX**: Jzazbz and JzCzhz model can never translate a color with a negative lightness, so just clamp negative
lightness while in Jzazbz and JzCzhz.
- **FIX**: Fix a math error in CAM16.
- **FIX**: Fix CAM16 JMh M limit which was too low.
- **FIX**: IPT was set to "bound" when it should have an unbounded gamut.
- **FIX**: When both `comma` and `none` are enabled it could make undefined alpha values show up as `none` in legacy CSS
format.
- **FIX**: Sane handling of inverse lightness in DIN99o.

1.7

- **NEW**: Add support for CAM16 Jab and JMh: `cam16` and `cam16-jmh` respectively.
- **NEW**: Add support for CAM16 UCS (Jab forms): `cam16-ucs`, `cam16-scd`, and `cam16-lcd`.
- **NEW**: Add support for the HCT color space (`hct`) which combines the colorfulness and hue from CAM16 JMh and the
lightness from CIELab.
- **NEW**: Gamut mapping classes derived from `fit_lch_chroma` can set `DE_OPTIONS` to pass ∆E parameters.
- **NEW**: While rare, some cylindrical color spaces have an algorithm such that achromatic colors convert best with a
very specific hue. Internally, this is now handled during conversions, but there can be reasons where knowing the hue
can be useful such as plotting. Cylindrical spaces now expose a method called `achromatic_hue()` which will
return this specific hue if needed.
- **FIX**: Fix `rec2100-hlg` transform.
- **FIX**: Some color transformation improvements.
- **FIX**: Relax some achromatic detection logic for sRGB cylindrical models. Improves achromatic hue detection results
when converting to and from various non-sRGB color spaces.

Page 7 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.