-
Notifications
You must be signed in to change notification settings - Fork 10
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
Color.hex_color is returning alpha in wrong position (first instead of last) #21
Comments
Additionally I think it is strange that you have to specify the alpha channel in the interval 0-1 instead of 0-255 and converting to "rgba" then returns it in the 0-255 interval. |
I'll take a look at the bug, but the color is just working off the CSS spec, although only a subset: |
I assume you're using a background color with transparency? (I think that's the only place where this would show up...) |
Exactly. And there is doesn't work because you simply get a white background instead. |
Maybe the bug should be in "nionui" then and we need to change the "set_background" method to adhere to the CSS spec? |
Try something like
Color.Color('rgba(255, 0, 0, 0.5)').to_rgba_255()
I would expect this to return
(255, 0, 0, 127)
but instead I get(127, 255, 0, 0)
.The text was updated successfully, but these errors were encountered: