Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] fill tint
#2
you have to create a new surface the same size as the screen, then set the alpha, and blit that surface at the top left. Im in a rush currently but something along the lines of

overlay_bg = pg.Surface(screen_rect.size)
overlay_bg.fill(0)
overlay_bg.set_alpha(200)
...
    #main loop
    screen.blit(overlay_bg,(0,0))
Recommended Tutorials:
Reply


Messages In This Thread
fill tint - by Zman350x - Feb-12-2017, 04:00 AM
RE: fill tilt - by metulburr - Feb-12-2017, 01:27 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020