# Homework 32, problem 1: flag. # # Draw a simple three-stripe flag filling most of the window. Each stripe # should be a different colour. Use pygame.draw.rect for each stripe. # # Run with: python exercises/32/homework/01-flag.py import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Flag") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((255, 255, 255)) # TODO: draw the three stripes here pygame.display.flip() clock.tick(60) pygame.quit()