# Homework 31, problem 2: background colour. # # Change the screen.fill(...) tuple to a colour that is not black. # Try at least two different colours by running the program twice # with different values. # # Run with: python exercises/31/homework/02-background-colour.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Coloured Background") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False # TODO: change this colour to something that is not black screen.fill((0, 0, 0)) pygame.display.flip() clock.tick(60) pygame.quit()