From 8dd43a85a6cbed2ed664ca141482ce46e830b09f Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sun, 3 May 2026 04:54:31 -0400 Subject: [PATCH] put in graphics.Color --- scoreboard.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scoreboard.py b/scoreboard.py index 111cf96..351ef49 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -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)