Skip to content

livejs/ndpixels-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🎨 convert ndarrays of pixels between color spaces

Resources

Stars

Watchers

Forks

Packages

No packages published