arthurvr / parse-rgb

Parse an `rgb()` color

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse-rgb Build Status

Parse an rgb() color

Install

$ npm install --save parse-rgb

Usage

const parseRgb = require('parse-rgb');

parseRgb('rgb(34, 50, 2)');
//=> {red: 34, green: 50, blue: 2}

License

MIT © Arthur Verschaeve

About

Parse an `rgb()` color

License:MIT License


Languages

Language:JavaScript 100.0%