put in graphics.Color
This commit is contained in:
+5
-5
@@ -256,11 +256,11 @@ def draw_all_games(canvas, games, start_index):
|
||||
draw_logo(canvas, away_logo, offset + 0, 0)
|
||||
draw_logo(canvas, home_logo, offset + 0, 16)
|
||||
|
||||
graphics.DrawText(canvas, font_small, offset + 18, 11, Colors.WHITE, game["away"])
|
||||
graphics.DrawText(canvas, font_small, offset + 18, 27, Colors.WHITE, game["home"])
|
||||
graphics.DrawText(canvas, font_small, offset + 18, 11, graphics.Color(Colors.WHITE), game["away"])
|
||||
graphics.DrawText(canvas, font_small, offset + 18, 27, graphics.Color(Colors.WHITE), game["home"])
|
||||
|
||||
graphics.DrawText(canvas, font, offset + 40, 13, Colors.YELLOW, str(game["away_score"]))
|
||||
graphics.DrawText(canvas, font, offset + 40, 29, Colors.YELLOW, str(game["home_score"]))
|
||||
graphics.DrawText(canvas, font, offset + 40, 13, graphics.Color(Colors.WHITE), str(game["away_score"]))
|
||||
graphics.DrawText(canvas, font, offset + 40, 29, graphics.Color(Colors.WHITE), str(game["home_score"]))
|
||||
|
||||
if i < 3:
|
||||
for row in range(32):
|
||||
@@ -304,7 +304,7 @@ def run():
|
||||
if games:
|
||||
draw_all_games(canvas, games, current_page)
|
||||
else:
|
||||
graphics.DrawText(canvas, font, 10, 22, Colors.RED, "No games today")
|
||||
graphics.DrawText(canvas, font, 10, 22, graphics.Color(Colors.RED), "No games today")
|
||||
|
||||
canvas = matrix.SwapOnVSync(canvas)
|
||||
sleep(0.03)
|
||||
|
||||
Reference in New Issue
Block a user