pygame Creating a pygame window

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


If you want to have other colours as the background, then name a new variable such as red = (255,0,0) and change the display.fill(black) to display.fill(red). You can create colours by storing them in a variable and checking their RGB values from the internet.

Got any pygame Question?