I'm making a game in pygame, and I want to make a transparent rectangle with pygame. But anything that I try doesn't work. Could someone help me out?
Asked
Active
Viewed 15 times
0
-
Have you tried setting the color of the rectangle to something like (0, 0, 0, 0)? The last 0 is the opacity. http://www.pygame.org/docs/ref/draw.html#pygame.draw.rect – Tomasz Kalisiak Feb 15 '22 at 12:46