From 403fb577a6bf6c79f94be77fb96bfdef66640402 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Fri, 13 Aug 2021 13:01:49 +0200 Subject: [PATCH] Tweak colors --- ddresc_visu/draw.py | 6 ++++-- test.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ddresc_visu/draw.py b/ddresc_visu/draw.py index 9063d5f..4f4fb9e 100644 --- a/ddresc_visu/draw.py +++ b/ddresc_visu/draw.py @@ -3,7 +3,7 @@ from .mapfile import MapFile import pygame colors = { - '?' : (192, 192, 192), # Non-tried + '?' : (64 , 64 , 64) , # Non-tried '*' : (0 , 0 , 255), # Non-trimmed '/' : (255, 255, 0) , # Non-scraped '-' : (255, 0 , 0) , # Bad @@ -15,7 +15,7 @@ colors = { BORDERCOLOR = (64,64,64) W = 1920 -H = 1080 +H = 1040 CELLSIZE = 8 CELLBORDER = 0 CELLMARGIN = 3 @@ -39,6 +39,8 @@ def get_symb(hist): class Visualisation: def __init__(self, fn, **kwargs): 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.mapfile = MapFile(fn, **kwargs) diff --git a/test.py b/test.py index faef106..0909bf2 100755 --- a/test.py +++ b/test.py @@ -32,4 +32,4 @@ visu = v.Visualisation(args.file, start=args.start, end=args.end) -visu.run(refresh=5) +visu.run(refresh=35)