Skip to content

Releases: Evercoder/culori

v0.14.0

12 Aug 14:21
Compare
Choose a tag to compare

Implements the average(colors, mode) function (#78)

v0.13.2

11 Aug 18:27
Compare
Choose a tag to compare
  • Make color deficiency filter functions use names consistent with other filters: filterDeficiencyProt, filterDeficiencyDeuter, filterDeficiencyTrit.
  • All filters now return values in the color space of the original color passed to them.

v0.13.1

11 Aug 18:23
Compare
Choose a tag to compare

Implements filterHueRotate.

v0.13.0

09 Aug 14:52
Compare
Choose a tag to compare

Adds the following filter functions, as per the Filter Effects Module Level 1 spec: filterBrightness, filterContrast, filterInvert, filterSepia, filterSaturate, filterGrayscale. Adds mapping functions mapTransferLinear and mapTransferGamma.

v0.12.1

15 Jul 14:26
Compare
Choose a tag to compare

Added sideEffects: false in package.json. Please open an issue if that causes any problem with your setup.

v0.12.0

15 Jul 13:46
Compare
Choose a tag to compare

Implemented more hue fixup methods (#93):

  • add fixupHueShorter(), fixupHueLonger(), fixupHueIncreasing(), fixupHueDecreasing() methods;
  • alias interpolateHue() to fixupHue() — the former will probably be removed from the API at some point
  • add fixupAlpha() method, slightly different than the old interpolateAlpha();
  • alias interpolateAlpha() to fixupAlpha() — the former will probably be removed from the API at some point

New methods:

  • formatHex8()
  • mapper()
  • mapAlphaMultiply()
  • mapAlphaDivide()
  • interpolateWith(premap, postmap)
  • interpolateWithPremultipliedAlpha()

v0.11.2

03 Jul 16:44
Compare
Choose a tag to compare

Fixes bug in interpolateSplineMonotone() to make it actually monotone (see #91, thanks @Fil!)

v0.11.0

01 Jul 20:28
Compare
Choose a tag to compare

Features

  • Implemented deficiencyProt(), deficiencyDeuter() and deficiencyTrit() functions to simulate color vision deficiencies (CVD); (#54)

Breaking changes

  • Removed the gray() shorthand for Lab colors, to match the latest version of css-color-4;

Deprecations

A couple of umbrella functions have been split into individual functions:

  • Instead of formatter(), use formatterHex and formatterRgb directly;
  • likewise, instead of clamp(), use clampRgb and clampChroma.

culori 0.10.2

26 Jun 16:19
Compare
Choose a tag to compare

Fixes lab() and lch() parsers to allow an optional percentage in the L channel, as per changes in the css-colors-4 spec #85; thanks @rozaxe!

v0.10.0

16 May 08:13
Compare
Choose a tag to compare