Skip to content

vasanthv/flat-color-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flat-color-generator

Flat color generator based on Mariam Maarouf's flat-color-generator

Read the original documentation by Mariam Maarouf here

Install

Install using npm.

npm install flat-color-generator

Usage

const flatuicolor = require('flat-color-generator');

const color = flatuicolor();

console.log(color.hex); // prints the hex value of the color

You can pass in an optional hue value to choose a random color from that hue value/degree.

const hue = 45;
const color = flatuicolor(hue);

The return object has the following properties:

property
h hue
s saturation
v value
r red
g green
b blue
hex hex value of the color

Credits

flat-color-generator by Mariam Maarouf

Licence

MIT

About

Flat color generator based on Mariam Maarouf's flat-color-generator. https://github.com/mariamrf/flat-color-generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published