I am making a platformer game in pygame but I am not able to change the color of the background of the window. This is my code:-
import pygame
import self as self
pygame.init()
SCREEN_WIDTH = 800
SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8)
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
pygame.display.set_caption('Platformer')
screen.fill(color = 'Green')
run = True
while run:
for event in pygame.event.get():
#quit game
if event.type == pygame.QUIT:
run = False
pygame.quit()