Here is my code:
import pygame
pygame.init()
screen = pygame.display.set_mode((200,200))
clock = pygame.time.Clock()
while True:
color = (100,100,200)
screen.fill(color)
pygame.display.flip()
clock.tick(60)
I think this should create a 200x200 window and fill it with the RGB color (100,100,200). Instead of this, it creates a blank 200x200 window. When I control-c to quit, the window flashes the correct color for one or two frames then closes. Why is this?