1.0.2 • Published 7 years ago

cha-0 v1.0.2

Weekly downloads
15
License
-
Repository
github
Last release
7 years ago

CHA-0

CHA-0 is a color hashing algorithm designed to output a random hex color string for a given string input. CHA-0 gives a good distribution over the hex color space through a multiplicative hashing scheme.

Build Status

Install

With npm:

$ npm install --save cha-0

With yarn:

$ yarn add cha-0

Usage

const cha0 = require('cha-0')
const fooColor = cha0('foo')
console.log('#' + fooColor) // "#3dc680"

Try it out at runkit.com

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago