Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 618 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 618 Bytes

ndpixels-convert

convert ndpixels between color spaces.

unstable

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