0

In my code, I use surface as a scrolling panel that stores various notes. The panel has the shape of a square with rounded corners. Therefore, when I use the blit() method to draw information in the feed, it constantly climbs into areas where the corners are rounded. How can I draw a sprite onto the surface of another without rendering it in places on the surface where its pixels are transparent?

I tried to use the special_flags=pygame.BLEND_RGBA_MULT argument for the blit() method, but it raped my application. the transparent parts of the panel turned black, and the objects inside became transparent.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174

0 Answers0