# surface amd rectangles import pygame import sys #General setup pygame.init() clock = pygame.time.Clock() width = 800 heigt = 800 #create the display surface screen = pygame.display.set_mode((800, 800)) second_surface = pygame.Surface([200, 200]) second_surface.fill((0,0,255)) third_surface = pygame.Surface([400, 200]) third_surface.fill((50,255,255)) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() screen.fill((255,255,255)) screen.blit(second_surface, (10,50)) screen.blit(second_surface, (250,200)) pygame.display.flip() clock.tick(60)