Chroma.js – A JavaScript library for color conversions and color scales(github.com)
github.com
Chroma.js – A JavaScript library for color conversions and color scales
https://github.com/gka/chroma.js
6 comments
The blog posts from Chroma.js
https://vis4.net/blog/posts/avoid-equidistant-hsv-colors/
https://vis4.net/blog/posts/mastering-multi-hued-color-scale...
are really nice, and help you figure out how to use Chroma.js (and the LAB color scheme). Nice work!
And here's a blog post from a year ago on Chroma.js that goes into a bit of detail about why it matters and some demos: https://vis4.net/blog/posts/mastering-multi-hued-color-scale...
couple additional links/libs for human-friendly color models:
http://www.boronine.com/husl/
http://alienryderflex.com/hsp.html
http://www.boronine.com/husl/
http://alienryderflex.com/hsp.html
There's also PleaseJS: https://github.com/Fooidge/PleaseJS
shameless plug, if you need to do color reduction for images:
play: http://o-0.me/RgbQuant/
code: https://github.com/leeoniya/RgbQuant.js
play: http://o-0.me/RgbQuant/
code: https://github.com/leeoniya/RgbQuant.js
I've just implemented it to set the text colour on http://www.stevengapo.com (which gets its colour scheme from random instagram photos) and it's much more readable now