rgb-hsv

1.0.0 • Public • Published

rgb-hsv

Convert RGB values to HSV. This is essentially the rgb2hsv function found in pqx/color-functions, however this module returns an array rather than an dictionary.

Build status

Install

$ npm install rgb-hsv

API

hsv(r, g, b)

Example

var hsv = require('rgb-hsv')
 
hsv(219, 152, 52)
> [36, 76, 86]
 
hsv.apply(null, [219, 152, 52])
> [36, 76, 86]

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i rgb-hsv

Weekly Downloads

15

Version

1.0.0

License

MIT

Last publish

Collaborators

  • michaelrhodes