Compare commits

...

2 commits

Author SHA1 Message Date
27150a2cb7
Fixed it, but better 2023-12-02 23:25:55 -07:00
2b407587e8
Added SIGQUIT 2023-12-02 23:22:52 -07:00

View file

@ -3,6 +3,7 @@ import time
import math import math
import random import random
import colorsys import colorsys
import sys
# Initialize Pygame # Initialize Pygame
pygame.init() pygame.init()
@ -80,6 +81,11 @@ while running:
d_spin = 0.1 d_spin = 0.1
while 1: while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
sys.exit(0)
spinny -= d_spin spinny -= d_spin
d_spin *= 1.0005 d_spin *= 1.0005