Compare commits
2 commits
25e143d406
...
27150a2cb7
Author | SHA1 | Date | |
---|---|---|---|
27150a2cb7 | |||
2b407587e8 |
1 changed files with 6 additions and 0 deletions
6
wheel.py
6
wheel.py
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue