color-palette-generator

1.0.4 • Public • Published

color-palette-generator Build Status Greenkeeper badge

Example

const colorGen = require('color-palette-generator') // colorGen(baseColor, numberOfColorsToGenerate, mixOutput)
 
console.log(colorGen('#D60000', 12)) // [ '#D60000', '#D64700', '#D68F00', '#D6D600', '#8FD600', '#47D600', '#00D600', '#00D647', '#00D68F', '#00D6D6', '#008FD6', '#0047D6' ]
 
console.log(colorGen('#D60000', 12, true)) // [ '#D60000', '#00D600', '#D64700', '#00D647', '#D68F00', '#00D68F', '#D6D600', '#00D6D6', '#8FD600', '#008FD6', '#47D600', '#0047D6' ]

Readme

Keywords

none

Package Sidebar

Install

npm i color-palette-generator

Weekly Downloads

3

Version

1.0.4

License

ISC

Last publish

Collaborators

  • tiborv