@vid3v/random-color
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@vid3v/random-color

A tiny JavaScript Library for generating arbitrary colors.

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.

/@vid3v/random-color/

    Package Sidebar

    Install

    npm i @vid3v/random-color

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    46.8 kB

    Total Files

    68

    Last publish

    Collaborators

    • vid3v