|
|
@ -14,8 +14,8 @@ colors = {
|
|
|
|
|
|
|
|
|
|
|
|
BORDERCOLOR = (64,64,64)
|
|
|
|
BORDERCOLOR = (64,64,64)
|
|
|
|
|
|
|
|
|
|
|
|
W = 1920 * 5 // 6
|
|
|
|
W = 1920
|
|
|
|
H = 1040
|
|
|
|
H = 1080
|
|
|
|
CELLSIZE = 8
|
|
|
|
CELLSIZE = 8
|
|
|
|
CELLBORDER = 0
|
|
|
|
CELLBORDER = 0
|
|
|
|
CELLMARGIN = 3
|
|
|
|
CELLMARGIN = 3
|
|
|
@ -73,6 +73,8 @@ class Visualisation:
|
|
|
|
|
|
|
|
|
|
|
|
def run(self, *, refresh=2):
|
|
|
|
def run(self, *, refresh=2):
|
|
|
|
pygame.time.set_timer(pygame.USEREVENT, refresh * 1000)
|
|
|
|
pygame.time.set_timer(pygame.USEREVENT, refresh * 1000)
|
|
|
|
|
|
|
|
pygame.event.set_blocked(None)
|
|
|
|
|
|
|
|
pygame.event.set_allowed([pygame.USEREVENT, pygame.VIDEORESIZE, pygame.VIDEOEXPOSE, pygame.QUIT, pygame.KEYDOWN])
|
|
|
|
self.draw()
|
|
|
|
self.draw()
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
ev = pygame.event.wait()
|
|
|
|
ev = pygame.event.wait()
|
|
|
|