PitPik / colorPicker

Advanced javaScript color picker and color conversion / calculation (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)
http://www.dematte.at/colorPicker/
MIT License
570 stars 136 forks source link

Does it support no default value? #17

Closed arlonlove closed 8 years ago

arlonlove commented 9 years ago

I need to use it whith out default value.

PitPik commented 9 years ago

Hi @arlonlove its hard to answer with this little information... do you mean the color picker itself, the jQuery implementation or the javascript implementation? The color picker always needs to show something, so for the UI: no. The implementations are more like demos to show how to use colorPicker, so they are meant to be tweaked. Right now, if you leave the values of the input fields in both implementations empty you'll get a javascript error (other than in https://github.com/PitPik/tinyColorPicker, where the value can be empty), but that is easy to fix though.

PitPik commented 8 years ago

@arlonlove I fixed the issue with empty values. Now you can have just an input field without any value. It defaults to #FFFFFF when you activate it. Both, javaScript and jQuery implementation support this now. Sorry that it took so long, but in the first place I didn't quite understand your short comment. Thanks though for participation ;o)