colorrr
v2.0.0
Published
Library that generates random HEX and RGB colors.
Downloads
3
Maintainers
Readme
colorrr
Library that generates random HEX and RGB colors.
~260 bytes gzipped
Use it like this:
var colorrr = require("colorrr");
colorrr.getHex(); // "#28A0B9" (string)
colorrr.getRBG(); // [122, 116, 46] (array)
Or like this:
import { getHex, getRGB } from 'colorrr';
getHex(); // "#28A0B9" (string)
getRGB(); // [122, 116, 46] (array)