ndpixels-convert
v1.1.0
Published
convert ndpixels between color spaces
Downloads
24
Maintainers
Readme
ndpixels-convert
convert ndpixels between color spaces.
install
with npm, do:
npm i --save ndpixels-convert
usage
var ndarray = require('ndarray')
var convert = require('ndpixels-convert');
var hslToRgb = convert('hsl', 'rgb')
var hsl = Ndarray([0, 100, 100], [1, 3])
var rgb = Ndarray([255, 0, 0], [1, 3])
t.deepEqual(hslToRgb(hsl).data, rgb.data)
check out tests
license
ISC