colormaker
v1.0.4
Published
NPM module that supplies a bunch of methods to generate colors according to a pattern
Downloads
5
Maintainers
Readme
COLORMAKER
Simple and easy use module that has the tools to generate colors on the fly.
How to install
npm install colormaker -S
How to use
var cm = require('colormaker');
cm.getRandomColors(n); // This will output 5 colors
// By default is 1
/*
This will return an array of 4096 hex colors
*/
cm.getAllColors();
/*
Returns an array with all the colors that makes
a primary color
*/
cm.paintPrimary(primary_color); // r, g, b
I'm just playing around but it would be great if someone would'd like to add extra features