📜  pygame bg color - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.093000             🧑  作者: Mango

代码示例2
while running:
    for i in pygame.event.get():
        if i.type == pygame.QUIT:
            running = False
            pygame.quit()

    screen.fill(currentColor) # Fill the screen with whatever the stored color is. 

    pygame.display.update() # Refresh the screen, needed whatever the color is, so don't remove this