rgb-hsv
v1.0.0
Published
Convert RGB values to HSV
Downloads
149
Readme
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.
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]