one less show
This commit is contained in:
parent
636e07bf6d
commit
1ce1a0fba1
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user