pythonarcade / arcade

Easy to use Python library for creating 2D arcade games.
http://arcade.academy
Other
1.68k stars 320 forks source link

GUI blend layering artifacts #2262

Open einarf opened 1 month ago

einarf commented 1 month ago

We seem to get some blending artifacts when drawing the framebuffer to the screen. Especially when doing text rendering.

Text rendered on top of an opaque brown surface. It should not cause the blended pixels to make transparent holes in the surface making the window background visible through the surface once rendered to the screen.

This is the raw pixel dump from the surface itself: shown in gimp to identify the transparency

image

einarf commented 1 month ago

Possibly we move this to 3.0.x if there is no time.

einarf commented 1 month ago

The only reasonable way to solve this is actually doing the math. I have a blending simulator we can use for this.