colormaker

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i colormaker

Weekly Downloads

3

Version

1.0.4

License

ISC

Last publish

Collaborators

  • lgamboa