Generating unique, contrasting colors in JavaScript
Date: 2021-02-14
Categories: Useful Code
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.