# Dr. V # Oct 2 # Program to create a patchwork quilt import pygame, time, random pygame.init() screen = pygame.display.set_mode([601,601]) screen.fill([0,0,0]) pygame.display.flip() for j in range(0,541,60): for k in range(0,541,60): color1 = random.randint(0,255) color2 = random.randint(0,255) color3 = random.randint(0,255) pygame.draw.rect(screen,[color1,color2,color3],[j,k,60,60]) pygame.display.flip() time.sleep(.1) raw_input("Press ENTER to close the graphics window") pygame.quit()