Socket
Book a DemoInstallSign in
Socket

generate-rgb

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-rgb

Generate an RGB color string

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

generate-rgb Build Status

Generate an RGB color string

Install

$ npm install --save generate-rgb

Usage

var generateRgb = require('generate-rgb');

generateRgb(0, 255, 255);
//=> 'rgb(0, 255, 255)'

generateRgb({
	red: 0,
	green: 255,
	blue: 255
});
//=> 'rgb(0, 255, 255)'

API

generateRgb(red, green, blue)

red

required

type: number

A number between 0 and 255 which represents the amount of red.

green

required

type: number

A number between 0 and 255 which represents the amount of green.

blue

required

type: number

A number between 0 and 255 which represents the amount of blue.

  • parse-rgb

License

MIT © Arthur Verschaeve

Keywords

rgb

FAQs

Package last updated on 16 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts