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
Trying to get it work #23
Comments
I finally got this to work. My issue was that I was using jQuery to get the image. var i = $('img'); |
Thank you so much Simonseddon for the mention on how to grab the img element. I have been banging my head against the keyboard for hours trying to figure out why the script claims I wasn't giving it an image when I selected it using $("img").first(); in jQuery. |
Thanks simonseddon for the last note. I was having a hard time converting the returned R,G,B into Hex. It came to my mind that perhaps the returned value was actually an array, not a string, and I had to iterate through it to get my function going, but didn't came to mind that I could do it this way: c[0],c[1],c[3]. Your little note saved me quite a lot of time! |
@pierrebonbon - I created a pull request for HEX conversion here: #78 |
The demo page documentation has been extended with an API table and more examples: Hope it helps. I'll continue to flesh out as new questions arrive. |
I want to get color palette when i click a image. i don't know how to make it work, what should be the value of : sourceImage
image src? all image tag?
The documentation is too minimalist
Nothing work
The text was updated successfully, but these errors were encountered: