All Versions
20
Latest Version
Avg Release Cycle
41 days
Latest Release
590 days ago

Changelog History
Page 1

  • v2.1.0

    October 31, 2019
  • v2.0.6

    August 28, 2019
  • v2.0.5

    August 28, 2019
  • v2.0.4

    June 17, 2019
  • v2.0.3 Changes

    February 16, 2019
    • 0๏ธโƒฃ hsl2rgb will, like other x2rgb conversions now set the default alpha to 1
  • v2.0.2 Changes

    December 11, 2018
    • ๐Ÿ‘‰ use a more mangle-safe check for Color class constructor to fix issues with uglifyjs and terser
  • v2.0.1 Changes

    December 11, 2018
    • โž• added chroma.valid() for checking if a color can be parsed by chroma.js
  • v2.0.0 Changes

    December 10, 2018
    • chroma.js has been ported from CoffeeScript to ES6! This means you can now import parts of chroma in your projects!
    • ๐Ÿ”„ changed HCG input space from [0..360,0..100,0..100] to [0..360,0..1,0..1] (to be in line with HSL)
    • โž• added new object unpacking (e.g. hsl2rgb({h,s,l}))
    • ๐Ÿ”„ changed default interpolation to lrgb in mix/interpolate and average.
    • ๐Ÿ“œ if colors can't be parsed correctly, chroma will now throw Errors instead of silently failing with console.errors
  • v1.4.1 Changes

    • chroma.scale() now interprets null as NaN and returns the fallback color. Before it had interpreted null as 0
    • โž• added scale.nodata() to allow customizing the previously hard-coded fallback (aka "no data") color #cccccc
  • v1.4.0 Changes

    • color.hex() now automatically sets the mode to 'rgba' if the colors alpha channel is < 1. so chroma('rgba(255,0,0,.5)').hex() will now return "#ff000080" instead of "#ff0000". if this is not what you want, you must explicitly set the mode to rgb using .hex("rgb").
    • ๐Ÿ›  bugfix in chroma.average in LRGB mode (#187)
    • chroma.scale now also works with just one color (#180)