medialab / iwanthue

Colors for data scientists.
http://tools.medialab.sciences-po.fr/iwanthue/
Other
642 stars 57 forks source link

API #4

Closed karthik closed 11 years ago

karthik commented 11 years ago

Any chance this could be made available via an API? I'd love to write a R package so palettes can be programmatically generated.

jacomyma commented 11 years ago

There is no real API but a code library written in javascript, that you can port to R eventually (everything is executed client-side). The file containing all the functions is there: https://github.com/medialab/iwanthue/blob/master/js/libs/chroma.palette-gen.js and it relies on colorspace conversions handled by the Chroma library: https://github.com/gka/chroma.js/

karthik commented 11 years ago

Makes sense. Thanks Mathieu.

On Wednesday, February 13, 2013 at 2:34 AM, Mathieu Jacomy wrote:

There is no real API but a code library written in javascript, that you can port to R eventually (everything is executed client-side). The file containing all the functions is there: https://github.com/medialab/iwanthue/blob/master/js/libs/chroma.palette-gen.js and it relies on colorspace conversions handled by the Chroma library: https://github.com/gka/chroma.js/

— Reply to this email directly or view it on GitHub (https://github.com/medialab/iwanthue/issues/4#issuecomment-13483277).

jacomyma commented 11 years ago

You're welcome :)