color-seed
Stable colors generator from given seed(s).
Based on seedrandom, chroma-js Spectral scale.
Install
npm install color-seed
Usage
colorSeed
colorSeed.getColor : single seed
✓ getColor("Paris") should return #a70b44
✓ getColor("Marseille") should return #7acaa5
✓ getColor("Bordeaux") should return #9ed8a4
colorSeed.getColors : multiple seed
✓ getColors(["Paris", "Marseille", "Bordeaux"]) should return #a70b44, #7acaa5, #9ed8a4
✓ getColors(["Paris", "Marseille", "Bordeaux", "xxx"]) should return #a70b44, #7acaa5, #9ed8a4, #3683bb
5 passing (13ms)