Open dumbledad opened 11 years ago
I agree that it would be a really nice improvement. I was wondering if implementing it would worth it, now I know. Thanks for the feedback :)
more specifically, it would be extremely cool to have a web API for automatic queries ...
I'll second Ben Bolker's request, arising from this SO post. For R users, such an API would complement the also excellent RColorBrewer and colorspace packages.
Ok, I have this in mind. However there is something I can do and something I cannot.
I cannot provide an online service. Actually, there is no server side in this application. So I cannot provide an online API that you would just query to get the colors. The code is in javascript and you can use it in a front-end project or server-side if it is in javascript (Node.js). It is not an API, it is just a function (or two).
The code of this function is available. You can download it as a file there and look at the code here on github. In order to have this in R or other languages, it is necessary to transcribe it in another language. I will probably not do this transcription myself. However I can explain the code or add documentation if you need it.
On the bright side I can provide a URL for a given palette and color space. I can do it the html5 way an I will probably do it when I will have some time !
It makes perfect sense that you're not able to provide an online API. I find the project really cool and was more or less wishing for the moon. Perhaps sometime I will get around to an R translation. Thanks!
Having found a great colour palette I want to share it with colleagues. I can cut-and-paste the values but it would be even better to sent them a URL that takes them to the palette inside the iWantHue site.