Skip to content

Riokai/random-color-rgb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-color-rgb

Build Status

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

About

generate random RGB colors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published