Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: Evercoder/culori

v4.0.2

27 Jun 16:01
@danburzo danburzo

Choose a tag to compare

Bug fixes

  • Changed XYZ <-> Oklab conversion matrices to match those used in the css-color-4 spec (#237, #249, #255)
  • toGamut() throws a more useful error than simply crashing then mode color space does not have lightness and chroma components (#261)
  • Changed reference component value ranges for lab / lch / lab65 / lch65 to match CSS spec (#260)
Assets 2
Loading

v4.0.1

26 Jan 19:31
@danburzo danburzo

Choose a tag to compare

Bug fixes

Fixes a reference initp/definition.js that caused an error when using the tree-shaked version of the library. (#223)

Loading
prjctimg and tomByrer reacted with rocket emoji
2 people reacted

v4.0.0

19 Jan 17:10
@danburzo danburzo

Choose a tag to compare

Breaking changes

This release includes changes to how color strings are parsed, converted, and serialized, for better alignment to CSS specs:

  • Clamp alpha to the [0, 1] interval at parse-time.
  • Clamp L in lab() / lch() to [0, 100], in oklab() / oklch() to [0, 1] at parse-time.
  • Correct numeric ranges in hsl() and hwb() syntaxes from [0, 1] to [0, 100].
  • Serialize missing components as 0 in legacy syntaxes and as none in modern syntaxes.
  • Use 0 for missing components in all color space conversions and gamut mapping functions.

New features

Fixes

  • Make averageAngle() always return in the [0, 360] interval;
  • Fix CIELUV (luv) conversion for l = 0;
  • Allow CommonJS bare import const culori = require('culori') (in addition to the previous culori/require endpoint).
Loading
dokozero reacted with rocket emoji
1 person reacted

v3.3.0

20 Nov 19:53
@danburzo danburzo

Choose a tag to compare

New features

  • Adds a third parameter to clampChroma() to change the destination RGB gamut (#212, #213)
  • Adds the ability to bypass the JND part of the CSS Color Level 4 gamut mapping algorithm by passing null as the delta color difference function (#212, #213)
  • Adds the easingSmoothstepInverse() function (re: #207)

Bug fixes

Loading
arb85 and prjctimg reacted with hooray emoji prjctimg reacted with rocket emoji
2 people reacted

v3.2.0

23 Jul 12:15
@danburzo danburzo

Choose a tag to compare

New features

Adds helper functions to interpolate values bilinearly (blerp()) and trilinearly (trilerp()). These are the extensions of linear interpolation (lerp()) to two and three dimensions, respectively. (Re: #207)

Loading

v3.1.3

10 Jun 09:56
@danburzo danburzo

Choose a tag to compare

Bug fixes

Replace non-ASCII identifiers with ASCII equivalents for better compatibility with build tools. (#205, thanks @VojtechVidra!)

Contributors

VojtechVidra
Loading
VojtechVidra reacted with heart emoji
1 person reacted

v3.1.2

02 Jun 19:17
@danburzo danburzo

Choose a tag to compare

Bug fixes

Make Culori work better with various bundlers by explicitly listing side-effect producing source files in package.json (See #195).

Loading

v3.1.1

01 Jun 20:56
@danburzo danburzo

Choose a tag to compare

Bug fixes

Fixes an error in the parser that caused it to choke on malformed colors such as oklch(70% 0..1 156) (#204, thanks for reporting @raidenmiro)

Contributors

raidenmiro
Loading

v3.1.0

26 Mar 16:49
@danburzo danburzo

Choose a tag to compare

New features

This release introduces new gamut-related functions:

  • inGamut(mode) returns a function with which to check that a color is within the gamut of the mode color space (#161); similar to displayable(), but for any RGB-based color space.
  • clampGamut(mode) returns a function with which to clip a color to the gamut of the mode color space; similar to clampRgb() but for any RGB-based color space.
  • toGamut(mode, ...) returns a function to gamut-map a color to the mode color space (#168); similar to clampChroma but for any RGB-based color space.

Bug fixes

Fixes mapper() function when mode = null (See #194, thanks @bijela-gora!)

Contributors

bijela-gora
Loading

v3.0.1

25 Feb 09:51
@danburzo danburzo

Choose a tag to compare

Bug fixes

  • Fixed a typo that allowed <hue> components in the color() syntax
  • Included oklab and oklch as exports in the culori/css bundle.

New features

  • Added unlerp() as the reverse of lerp()
Loading
ElPrudi and prjctimg reacted with thumbs up emoji
2 people reacted
Previous 1 3 4 5 6
Previous

AltStyle によって変換されたページ (->オリジナル) /