Closed jeLee6gi closed 1 year ago
Hello! This has to do with pixman using pre-multiplied alpha. To get the desired effect you need to multiply the RGB components by alpha / FF
. So for 80808000
: 80 * 00 / FF = 00
and thus 00000000
. I'm not sure how to address this issue since converting this way can introduce some inaccuracy.
Oh I was not familiar with premultiplied alpha. Thank you for the explanation, TIL.
This might not be a bug but I didn't expect this behavior. When I set the alpha channel of a color to 0, it's transparent only when I also set RGB to 0. Here are some examples, the background color is #008080.