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

Select color programmatically #65

Open
yintothayang opened this issue Nov 11, 2014 · 4 comments
Open

Select color programmatically #65

yintothayang opened this issue Nov 11, 2014 · 4 comments

Comments

@yintothayang
Copy link

Is there a way I can select a color programmatically? just changing the $.val() does not change the color in the preview.

@frangin2003
Copy link

You need to call updatePreview to update the color of square preview to the right. Since updatePreview is not exposed, I've created a version of pick-a-color with this possibility:
https://github.com/frangin2003/pick-a-color/commit/43963e438e9c3e8002f19f85bfa3a8c6df3776e9
See fiddle here to demo:
http://jsfiddle.net/frangin2003/yy8uxmjh/

@charleslaw
Copy link

This solution sets the color of the preview but does not actually set the values of the H/S/L.

@charleslaw
Copy link

I ended up needing to set them programmatically, so I made the changes here:#81

@isi-dwade
Copy link

See issue #94 for a quick solution

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

No branches or pull requests

4 participants