1.0.0 • Published 8 years ago

rgb-hsv v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

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