Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct URL #5

Open
dumbledad opened this issue Feb 21, 2013 · 5 comments
Open

Direct URL #5

dumbledad opened this issue Feb 21, 2013 · 5 comments

Comments

@dumbledad
Copy link

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.

@jacomyma
Copy link
Member

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 :)

@bbolker
Copy link

bbolker commented Mar 7, 2013

more specifically, it would be extremely cool to have a web API for automatic queries ...

@JoshOBrien
Copy link

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.

@jacomyma
Copy link
Member

jacomyma commented Mar 8, 2013

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 !

@bbolker
Copy link

bbolker commented Mar 8, 2013

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants