Coming up with contrasting, attractive colors for an unknown number of items can be tricky. This post gives a short (10 line) function that returns unique colors for an arbitrary number of items using bit manipulation.
Note: this was originally published on my personal blog (smeans.com) in 2018. So, I’ve been building projects using NoSQL databases (like MongoDB and Apache CouchDB) for several years now, and there are a lot of things I really like about them. But one need I’m always bumping up against is the ability to summarize tons of […]