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

Package Sidebar

Install

npm i seed-color

Weekly Downloads

822

Version

2.0.1

License

MIT

Last publish

Collaborators

  • syuilo