def save0():
darker_white = (0,255,0)
screen.fill(green)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
leave()
if event.type == pygame.VIDEORESIZE:
surface = pygame.display.set_mode((event.w, event.h),pygame.RESIZABLE)
#screen.fill(white)
#screen.fill(darker_white)
print("Loop is true")
pygame.display.update()
So whenever i run this function in my pygame window it seems like it is refreshing the screen but i am trying to change the colour to white and it just stays black for some reason it seems to update because when i resize the window the whit lines disapear and the whole screen turns black. If anyone can help me fix this code please do I am trying to create a animation where the screen gets darker. Thanks