From 1ce1a0fba12b9dc9597deb907048d3ba7c4c6590 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 28 Aug 2018 22:14:45 -0400 Subject: [PATCH] one less show --- good_sprite.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/good_sprite.py b/good_sprite.py index af42b6b..f766f15 100644 --- a/good_sprite.py +++ b/good_sprite.py @@ -29,7 +29,7 @@ def print_digit(position, digit): sprite = text_mask.crop((s_x, 0, s_x + num_width, num_height)) - inkyphat.paste(inkyphat.RED, (o_x, o_y), sprite) + inkyphat.paste(inkyphat.BLACK, (o_x, o_y), sprite) def print_number(position, number): """Prints a number using the sprite sheet.""" @@ -105,8 +105,6 @@ def draw(stats): inkyphat.set_border(inkyphat.WHITE) inkyphat.set_image("./background.png") - inkyphat.show() - draw_row('year', stats, 12) draw_row('books', stats, 18) draw_row('pages', stats, 12) @@ -114,9 +112,6 @@ def draw(stats): inkyphat.show() def draw_row(row, stats, size): - #font = ImageFont.truetype(inkyphat.fonts.PressStart2P, size) - font = ImageFont.truetype(inkyphat.fonts.FredokaOne, size) - #font = ImageFont.truetype(inkyphat.fonts.AmaticSC, size) for year in stats: count = year[row][0] x,y = year[row][1]