random-color-rgb
v1.1.1
Published
generate random RGB colors
Downloads
83
Readme
random-color-rgb
Package to generate random RGB colors
Install
npm install random-color-rgb
Usage
var randomColorRGB = require('random-color-rgb')
// or ES2015(babel support)
import randomColorRGB from 'random-color-rgb'
randomColorRGB()
// return {String} rgb(100,100,100)
// set maximum
randomColorRGB({max: 100})
// return {String} rgb(90,80,60)
// set minimum
randomColorRGB({min: 20})
// return {String} rgb(145,118,172)
// set opacity
randomColorRGB({opacity: 0.5})
// return {String} rgba(123,182,123,0.5)
Develop
npm run dev