seed-color
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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';

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    1,509
    • latest

Version History

Package Sidebar

Install

npm i seed-color

Weekly Downloads

794

Version

2.0.1

License

MIT

Last publish

Collaborators

  • syuilo