simonwep / pickr

🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
https://simonwep.github.io/pickr
MIT License
4.31k stars 285 forks source link

Gradient #220

Closed ziadevcom closed 4 years ago

ziadevcom commented 4 years ago

Your question

Can we set the default value of Pickr o Gradient? If yes, can you please guide. Thanks

Your environment:

Version (see Pickr.version):
Used bundle (es5 or normal one):
Used theme (default is classic): 
Browser-version:  
Operating-system:  
ziadevcom commented 4 years ago

I figured it out with custom CSS but is there any possibility to achieve this through the picker object? That would be better, right?

ziadevcom commented 4 years ago

Or later on, set the preview/default color to the selected color. Is this possible?

simonwep commented 4 years ago

Sorry, won't do that. Pickr itself is already difficult enough to maintain due to its age and setup. Pickr with gradients was a project a while ago though, you might want to checkout gpickr.

I'm considering working on a v2 with plugin support were that could be possible.