-
Notifications
You must be signed in to change notification settings - Fork 195
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
support RGBA color values #513
Comments
opacity can be set as a separate parameter, like here: But I agree that also supporting RGBA values would be convenient. |
What would be your preferred syntax for specifying rgba in one value? It doesn't seem to be common to use hex. |
Agree, i think css |
If rgba is provided, a warning message is produced since alpha values must be specified speparately using an opacity attribute. Issue #513
I've added support for parsing rgb(a) color specifications, but any alpha value will be ignored and warning message generated on the console saying to use the separate opacity property. Fully supporting rgba would require crawling through any style specification to identify rgba specifiers and creating separate opacity properties. |
thanks you @dkoes |
Hi @dkoes, rethinking about this issue, is it possible to allow |
I have another thought on this lets not change the way color works but rather the way the shader is processing the color. Inside the fragment shaders we can change |
That only works if everything is properly depth sorted (so everything beneath the transparent fragment has already been drawn to the buffer before you color max). Unfortunately, that's not true (transparency is hard). |
Is it possible to support RGBA color values? I am trying to color one chain with a color function using resi to assign colors?
I would like resi not selected to be a little bit transparent, tried using RGBA or hex code with alpha not working.
Thanks.
The text was updated successfully, but these errors were encountered: