put in graphics.Color

This commit is contained in:
2026-05-03 04:54:31 -04:00
parent f0f8fdc01a
commit 8dd43a85a6
+5 -5
View File
@@ -256,11 +256,11 @@ def draw_all_games(canvas, games, start_index):
draw_logo(canvas, away_logo, offset + 0, 0) draw_logo(canvas, away_logo, offset + 0, 0)
draw_logo(canvas, home_logo, offset + 0, 16) 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, 11, graphics.Color(Colors.WHITE), game["away"])
graphics.DrawText(canvas, font_small, offset + 18, 27, Colors.WHITE, game["home"]) 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, 13, graphics.Color(Colors.WHITE), str(game["away_score"]))
graphics.DrawText(canvas, font, offset + 40, 29, Colors.YELLOW, str(game["home_score"])) graphics.DrawText(canvas, font, offset + 40, 29, graphics.Color(Colors.WHITE), str(game["home_score"]))
if i < 3: if i < 3:
for row in range(32): for row in range(32):
@@ -304,7 +304,7 @@ def run():
if games: if games:
draw_all_games(canvas, games, current_page) draw_all_games(canvas, games, current_page)
else: 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) canvas = matrix.SwapOnVSync(canvas)
sleep(0.03) sleep(0.03)