0

when I make a display and then go to another tab, the screen clears. This is really annoying if I have a code like this:

import pygame
pygame.init()
screen = pygame.display.set_mode((0,0),pygame.FULLSCREEN)
i = 0
running = True
while running:
    i += 0.05
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
    for y in range(100):
        screen.set_at((round(i),y),(255,255,255))
    pygame.display.update()
pygame.quit()

is there any way to prevent this?

someone
  • 122
  • 4

0 Answers0