Tweak colors

master
LEdoian 3 years ago
parent 72cbd765da
commit 403fb577a6

@ -3,7 +3,7 @@ from .mapfile import MapFile
import pygame import pygame
colors = { colors = {
'?' : (192, 192, 192), # Non-tried '?' : (64 , 64 , 64) , # Non-tried
'*' : (0 , 0 , 255), # Non-trimmed '*' : (0 , 0 , 255), # Non-trimmed
'/' : (255, 255, 0) , # Non-scraped '/' : (255, 255, 0) , # Non-scraped
'-' : (255, 0 , 0) , # Bad '-' : (255, 0 , 0) , # Bad
@ -15,7 +15,7 @@ colors = {
BORDERCOLOR = (64,64,64) BORDERCOLOR = (64,64,64)
W = 1920 W = 1920
H = 1080 H = 1040
CELLSIZE = 8 CELLSIZE = 8
CELLBORDER = 0 CELLBORDER = 0
CELLMARGIN = 3 CELLMARGIN = 3
@ -39,6 +39,8 @@ def get_symb(hist):
class Visualisation: class Visualisation:
def __init__(self, fn, **kwargs): def __init__(self, fn, **kwargs):
pygame.init() pygame.init()
# https://stackoverflow.com/questions/46160971/pygame-full-core-usage-in-simple-loop
pygame.mixer.quit()
self.disp = pygame.display.set_mode((W, H)) self.disp = pygame.display.set_mode((W, H))
self.mapfile = MapFile(fn, **kwargs) self.mapfile = MapFile(fn, **kwargs)

@ -32,4 +32,4 @@ visu = v.Visualisation(args.file, start=args.start, end=args.end)
visu.run(refresh=5) visu.run(refresh=35)

Loading…
Cancel
Save