color
This commit is contained in:
parent
728160dadb
commit
eb545e73a7
4
good.py
4
good.py
@ -73,7 +73,7 @@ def get_stats(pages, books):
|
||||
def draw(stats):
|
||||
colour = 'red'
|
||||
inkyphat.set_colour(colour)
|
||||
inkyphat.set_border(inkyphat.RED)
|
||||
inkyphat.set_border(inkyphat.WHITE)
|
||||
inkyphat.set_image("./background.png")
|
||||
|
||||
draw_row('year', stats, 12)
|
||||
@ -90,7 +90,7 @@ def draw_row(row, stats, size):
|
||||
count = year[row][0]
|
||||
x,y = year[row][1]
|
||||
w, h = font.getsize(count)
|
||||
inkyphat.text((x, y), count, inkyphat.RED, font)
|
||||
inkyphat.text((x, y), count, inkyphat.WHITE, font)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user