0

I am trying to make a color scheme that fades into itself, but if i set the window size over 256*2096, it will not start the animation of the colors. Is this just a me problem, or is there a limit to a window size?

import pygame
pygame.init()
window = pygame.display.set_mode([256, 2096])
x=0
y=0
r=0
g=0
b=0
drawing=True
#changes and draws the colors
for i in range(256*2096):
    pygame.draw.circle(window,(r,g,b),(x,y),1)
    x+=1
    if x==256:
        x=0
        y+=1
    b+=1
    if b==256:
        b=0
        g+=1
    if g==256:
        g=0
        r+=1
    if i%256==0:
        pygame.display.flip()
pygame.display.flip()
input()

The result should be blending colors I get a result of nothing displaying over 2096

Scott Hunter
  • 48,888
  • 12
  • 60
  • 101
  • I don't have problem even with size 5000 on Linux Mint. – furas Dec 05 '17 at 01:22
  • It seems to work as intended for me as well. – skrx Dec 05 '17 at 01:56
  • So do you think it is my computer? – Joshua Like Dec 05 '17 at 02:00
  • 1
    What operating system, Python and pygame version do you use? It could perhaps be the missing event loop or [`pygame.event.pump()`](http://www.pygame.org/docs/ref/event.html#pygame.event.pump) call. Then the operating system thinks the program has stopped to respond and freezes it. – skrx Dec 05 '17 at 03:27

0 Answers0