pygame screenshot

How to take screenshot in pygame

We can take screenshot in pygame with pygame.image.save(screen, “screenshot.png”) And this is the example program for this If we directly add this in the pygame loop that will continuously take the screenshot. To solve this we will add a button so when the user click the button the program will take the screenshot. This more […]