baianat / verte

🎨 A Color picker component. Built from the bottom to work with Vue.js.
https://baianat.github.io/verte/
MIT License
181 stars 42 forks source link

Auto detect input color model and convert to desired output color model #64

Open olemarius opened 3 years ago

olemarius commented 3 years ago

Is your feature request related to a problem? Please describe. When using the color picker on dynamic setting where the value can be any valid color value (hex, rgb,rgba etc), the picker breaks and sets black as initial color.

Describe the solution you'd like I expect the input value to be auto detected then converted to whatever you set the output value, so if the initial value is #ff0000 and the output model is rgba, it should convert #ff0000 to rgba value. Also, if value is empty, the output will be empty until an actual change has been performed.

Describe alternatives you've considered Manually converting the value before passing it to verte.

nguyenduc308 commented 3 years ago

how did you fix it ? For initial value must be show. I got blank canvas when first time opened this lib