seed-color
v2.0.1
Published
Generate random colors from a seed
Downloads
2,117
Readme
seed-color
Generate random color from a seed. For example, such as when you want to generate a unique color from the values, such as IP address and ID.
Install
$ npm install seed-color --save
Example
const seedColor = require('seed-color');
seedColor('hima').toHex(); // #d72c5d
seedColor('saku').toHex(); // #ae6e6c
On TypeScript
Type definition are bundled.
import seedColor from 'seed-color';