A native version of Chroma.js that allows you to:
* use W3C X11 color names.
* create color scales,
* use different color spaces such as CMYK, HSLA, LAB, LCH and RGB,
* modify colors using interpolate, set/get alpha, lighten/darken, saturate/desaturate,
* compare colors using WCAG contrast,
* use existing color maps such as Brewer, cmocean, Cividis, Turbo, Sinebow, Parula, Virdis, Plasma, Magma and Inferno.
There is an example site showing how to use the library.
yarn installyarn run makeyarn run testyarn run benchmarks101 Data Points, Limits on a 3.1 GHz Intel Core i7, Chrome 77.0:
| Algorithm | Runs/Second |
| ------------- | ------------- |
| CkMeans | 531 |
| Equal | 32,014 |
| HeadTail | 21,711 |
| Logarithmic | 31,482 |
| Quantile | 27,142 |yarn run local-docyarn run docPreview elm docs:
How to release Elm package:
elm bump
git add elm.json
git commit -m "2.0.0 - description of changes"
git tag 2.0.0
git push origin master 2.0.0
elm publishBeautiful Colormaps:
Idiomatic Guide to Releasing Elm:
Many thanks to Indicatrix (https://indicatrix.io) for supporting this project.