Skip to content

B-Evans99/chromahash

 
 

Repository files navigation

Travis Build Status npm

chromahash

Hash strings into colours

Usage

npm install chromahash
const chromahash = require('chromahash')

const rgbHex = chromahash('chromahash') // returns a rgb hex colour

Why

  • You have strings and want to associate colours to them
  • You want those colour associations to be deterministic
  • You can't be bothered to pre-associate words with colours

Say you have a decentralized or offline application, and your users want to tag things and those tags should have colours. Your users want these colours to be consistent across devices and for their friends. You need to hash the tags into colours... chromahash!

About

Hash strings into colors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.0%
  • HTML 33.0%