Skip to content

Releases: Evercoder/culori

v2.1.1

21 Feb 22:16
Compare
Choose a tag to compare

Bug fixes

Fixes an inaccuracy in the original release of the XYB color space. The default color space used in JPEG XL contains an additional adjustment called Chroma from luma, that effectively subtracts Y from B as the last step for an xyb color.

v2.1.0

21 Feb 21:27
Compare
Choose a tag to compare

New features

Adds support for the XYB (xyb) color model, part of the JPEG XL Image Coding System, as an LMS-based colour model inspired by the human visual system, facilitating perceptually uniform quantization. It uses a gamma of 3 for computationally efficient decoding.

New exports: xyb (shortcut to converter('xyb')), modeXyb, convertXybToRgb, convertRgbToXyb.

Note: Please update to version 2.1.1 for an adjusted XYB color space that includes the Chroma from luma adjustment used in JPEG XL.

A square canvas shows the trapezoidal shape of the srgb gamut in xyb color space, against a black backdrop

Above: The sRGB gamut in the XYB color space, for a slice of constant y.

v2.0.4

24 Jan 22:13
Compare
Choose a tag to compare

Fixes

  • Adjusts the number precision in Oklab conversion matrices.
  • Fixes sRGB <-> YIQ conversion to use gamma-corrected RGB values instead of linear values (#185, thanks @facelessuser)

v2.0.2

05 Dec 12:24
Compare
Choose a tag to compare

Adds package.json to the package exports to improve compatibility with some build tooling.

v2.0.1

04 Dec 09:59
Compare
Choose a tag to compare

Starting with this version, Culori is available to Deno users on deno.land/x/culori (thanks @nnmrts!). There are no code-related changes.

v2.0.0

13 Oct 10:26
Compare
Choose a tag to compare

⚠️ Breaking changes

➸ Please consult the Migration guide to upgrade from version 1.x to 2.0.

  • xyz mode renamed to xyz50, along with all functions referencing it (e.g. convertLabToXyz becomes convertLabToXyz50) (#152). mode: 'xyz' is no longer supported.
  • <number> for L no longer valid in lab() and lch() (#151)

New features

  • All color components in all CSS color syntaxes now accept the none keyword, in line with the latest changes in the CSS Color 4 spec. (w3c/csswg-drafts#6107)
  • Allow any number of components in the color() CSS syntax, and fill in omitted components with 0.

v1.2.0

03 Oct 19:03
Compare
Choose a tag to compare

New features

New color spaces: Added support for Björn Ottosson's Okhsl and Okhsv color spaces, two new color spaces for color picking. They are available as the okhsl and okhsv modes.

Tree shaking: Added exports for low-level parsing/conversion/serialization functions, co you can use Culori without pre-registering any color space. See the Tree shaking guide for details, and the Low-level API section of the API reference for available functions.

v1.1.1

01 Oct 19:29
Compare
Choose a tag to compare

New features

Use the culori/css or culori/all bootstrap packages in addition to culori/fn to quickly bootstrap CSS-supported color spaces / all color spaces while maintaining tree-shakeability:

import 'culori/css';
import { interpolate } from 'culori/fn';

v1.1.0

01 Oct 19:04
Compare
Choose a tag to compare

Incomplete release. See version v1.1.1 above.

v1.0.0

01 Oct 18:41
Compare
Choose a tag to compare

Inaugural major release! 🎉

  • ⚠️ This release contains breaking changes.
  • Please see the Migration guide for a summary of changes and how to upgrade to 1.0. This release also includes the (experimental) tree-shakeable version under culori/fn. Read the tree-shaking guide.