Skip to content

vid3v/random-color

Repository files navigation

@vid3v/random-color

A tiny JavaScript Library for generating arbitrary colors.

Codacy Badge MIT License

Installation

$ npm install --save @vid3v/random-color

Usage

var { hex, rgb, rgba, hsl, hsla, name } = require('@vid3v/random-color');

hex()  // => #F37827
rgb()  // => rgb(90, 233, 87)
rgba() // => rgba(192, 81, 47, 0.9)
hsl()  // => hsl(90, 63%, 95%)
hsla() // => hsla(302, 49%, 10%, 0.32)
name() // => red

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

About

A tiny JavaScript Library for generating arbitrary colors

Resources

License

Stars

Watchers

Forks

Packages

No packages published