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

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

Open
olemarius opened this issue Dec 16, 2020 · 1 comment

Comments

@olemarius
Copy link

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
Copy link

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

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

2 participants