@momo112/random-color-generator
v0.0.3
Published
[npm link (@momo112/random-color-generator)](https://www.npmjs.com/package/@momo112/random-color-generator)
Downloads
2
Readme
random-color-generator
NPM
npm link (@momo112/random-color-generator)
functions
rcg.get(rgbColorOptions:JSON);
get random color
var rcg = require('@momo112/random-color-generator');
rcg.get();
{
hex: "#A200FF",
R: "162",
G: "0",
B: "255",
H: "278",
S: "100",
L: "50",
C: "36",
M: "100",
Y: "0",
K: "0"
}
var rcg = require('@momo112/random-color-generator');
rcg.get({ R: "100", G: "163" });
{
hex: "#64A345",
R: "100",
G: "163",
B: "69",
H: "100",
S: "58",
L: "45",
C: "39",
M: "0",
Y: "58",
K: "36"
}
rcg.
|color|
()
var rcg = require('@momo112/random-color-generator');
rcg.black();
rcg.white();
rcg.red();
rcg.blue();
rcg.green();