Open yintothayang opened 9 years ago
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/
This solution sets the color of the preview but does not actually set the values of the H/S/L.
I ended up needing to set them programmatically, so I made the changes here:https://github.com/lauren/pick-a-color/pull/81
Is there a way I can select a color programmatically? just changing the $.val() does not change the color in the preview.