All Versions
20
Latest Version
Avg Release Cycle
41 days
Latest Release
207 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

    February 16, 2019
    • 0️⃣ hsl2rgb will, like other x2rgb conversions now set the default alpha to 1
  • v2.0.2

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

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

    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

    • 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

    • 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)