TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Chroma.js – A JavaScript library for color conversions and color scales

66 pointsby hisingover 10 years ago

5 comments

stevengapoover 10 years ago
Awesome, I&#x27;ve been looking for something exactly like this<p>I&#x27;ve just implemented it to set the text colour on <a href="http://www.stevengapo.com" rel="nofollow">http:&#x2F;&#x2F;www.stevengapo.com</a> (which gets its colour scheme from random instagram photos) and it&#x27;s much more readable now
prabhaspover 10 years ago
The blog posts from Chroma.js <a href="https://vis4.net/blog/posts/avoid-equidistant-hsv-colors/" rel="nofollow">https:&#x2F;&#x2F;vis4.net&#x2F;blog&#x2F;posts&#x2F;avoid-equidistant-hsv-colors&#x2F;</a> <a href="https://vis4.net/blog/posts/mastering-multi-hued-color-scales/" rel="nofollow">https:&#x2F;&#x2F;vis4.net&#x2F;blog&#x2F;posts&#x2F;mastering-multi-hued-color-scale...</a> are really nice, and help you figure out <i>how</i> to use Chroma.js (and the LAB color scheme). Nice work!
xemokaover 10 years ago
And here&#x27;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: <a href="https://vis4.net/blog/posts/mastering-multi-hued-color-scales/" rel="nofollow">https:&#x2F;&#x2F;vis4.net&#x2F;blog&#x2F;posts&#x2F;mastering-multi-hued-color-scale...</a>
评论 #8604813 未加载
marco1over 10 years ago
There&#x27;s also PleaseJS: <a href="https://github.com/Fooidge/PleaseJS" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Fooidge&#x2F;PleaseJS</a>
leeoniyaover 10 years ago
shameless plug, if you need to do color reduction for images:<p>play: <a href="http://o-0.me/RgbQuant/" rel="nofollow">http:&#x2F;&#x2F;o-0.me&#x2F;RgbQuant&#x2F;</a><p>code: <a href="https://github.com/leeoniya/RgbQuant.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leeoniya&#x2F;RgbQuant.js</a>