RolandR / ColorHash

Creates an unique color from a string.

Home Page:https://draemm.li/various/colorHash/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This will generate a pseudo-random color based on an input string.
For any given string, the generated color will always be the same, like a hash function.


Screenshot

Usage

To get started, just copy colorhash.js to your project.
The function colorHash(inputString) will return an object with the color's r, g, and b values, a string "rgb(r, g, b)" and a html color string "#RRGGBB".

License

Color Hash is public domain software.
You can use, copy, adapt and republish it for any purpose whatsoever.

About

Creates an unique color from a string.

https://draemm.li/various/colorHash/

License:The Unlicense


Languages

Language:HTML 52.3%Language:JavaScript 27.5%Language:CSS 20.2%