pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
766 stars 120 forks source link

Have (0, 0) as default dest argument for Surface.blit #2935

Closed JiffyRob closed 12 hours ago

JiffyRob commented 1 week ago

Description In short, I would like to just be able to call surface.blit(other_surface) instead of surface.blit(other_surface, (0, 0)).
I have been meaning to ask for this for a while. The major use case for this, at least in my code, is when applying effects to entire surfaces, like darkening by making a grey surface and then blitting it onto another surface with pygame.BLEND_RGB_MULTIPLY, or drawing a blackish 'fog-of-war' over the map on screen. A few ack, grep, and wc calls tell me that in my current pygame project, 11 of 42 blit calls use (0, 0) as their dest argument, and the rest are almost all pygame.Rect objects being passed in instead.