The extensible color library.
var alchemist = require('alchemist-js')
alchemist.rgb(150, 100, 50).hsl() // => [ 30, 0.5, 0.39 ]
alchemist.use({
name: 'lsh',
to: {
'hsl': function (L, S, H) {
return [H, S, L]
}
}
})
alchemist.lsh(.75, .5, 180).hsl() // => [180, .5, .75]
alchemist-common
will be adding some soon.Want to help Alchemist reach v2.0 a bit faster? Send a pull request!
Alchemist wouldn't have been possible without the many other color libraries already out there. Much of the code for Alchemist and it's plugins were either heavily inspired by, or taken directly out of one of these libraries:
Also, extra special thanks to a few individuals who helped me along the way.
Thanks to all of you!