window.py - #A Computer Science#www.apluscompsci.com import...

This preview shows page 1 out of 1 page.

# #A+ Computer Science # # import pygame import sys from math import pi pygame.init() screen = pygame.display.set_mode((640, 480)) white = (255, 255, 255) screen.fill(white) green = (0, 128, 0) red = (255, 0, 0) blue = (0, 0, 225) gray = (192, 192, 192) purple = (161, 3, 252) light_blue = (3, 232, 252) hot_pink = (252, 3, 177) light_green = (3, 252, 186) # #draw an 8 pane window # #use different colors pygame.draw.rect(screen, green, (50, 10, 50, 50), 3) pygame.draw.rect(screen, red, (50, 60, 50, 50), 3) pygame.draw.rect(screen, blue, (50, 110, 50, 50), 3)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture