Skip to content

Releases: Evercoder/culori

v0.9.0

15 May 09:17
Compare
Choose a tag to compare

culori.interpolate() now supports:

  • color stop positions
  • interpolation hints (midpoint positions)
  • easing functions

Color stop positioning and interpolation hints are based on the CSS Images Level 4 working draft, but differs slightly in that interpolation hints don't alter the position of color stops.

Support for easing functions* inspired by @meyerweb's proposal.

*Easing functions not included.

v0.8.2

15 May 09:03
Compare
Choose a tag to compare

Adds culori.random() for generating random colors.

v0.8.1

15 May 09:04
Compare
Choose a tag to compare

Adds the culori.blend() function. (#59)

v0.7.4

15 May 09:05
Compare
Choose a tag to compare

Fixes a typo that caused formatter('rgb')('#f0f0f0f0') and similar examples to ignore the alpha channel of the input color, generating rgb(...) instead of rgba(...).

v0.7.3

15 May 09:05
Compare
Choose a tag to compare

Adds closed type for basis, natural and monotone spline interpolation. (#50).

v0.7.0

15 May 09:06
Compare
Choose a tag to compare

Breaking changes

Revamped the interpolation UI to be terser (#55). The interpolation functions have been renamed, and their implementation has been refactored.

v0.6.0

15 May 09:07
Compare
Choose a tag to compare

Stop treating the alpha channel specifically in the Euclidean distance formula. Instead, assume it's always the fourth channel and assign it a default weight of 0. This means that it's now possible to factor in the alpha into the distance, if needed.

There's also a change of handing NaN differences on a channel. In this case, the distance on that particular channel is considered to be zero. (Which kind of makes sense?)

Distances on the hue (h channel) are now computed with the shortest hue distance, taking into account the cyclical nature of this channel. (#68).

v0.5.4

15 May 09:07
Compare
Choose a tag to compare

Fixed typo in CMC (l:c) color difference formula. (#66)

v0.5.3

15 May 09:08
Compare
Choose a tag to compare

Breaking: nearest() now returns the original color object. (#67)

v0.5.2

15 May 09:08
Compare
Choose a tag to compare
  • Adds YIQ color space and Kotsarenko/Ramos color difference function (thanks @mourner for the pointer!)
  • Adds the weights argument to differenceEuclidean