From a4093b019d8dd605fe788bd810fef5d38ef552c0 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sun, 3 May 2026 14:41:44 -0400 Subject: [PATCH] add text --- scoreboard.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/scoreboard.py b/scoreboard.py index 3c19e4a..6431ced 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -319,6 +319,40 @@ def draw_single_game(canvas, game): draw_logo(canvas, away_logo, 0, 0) draw_logo(canvas, home_logo, 0, 16) + graphics.DrawText( + canvas, + font_small, + 18, + 11, + graphics.Color(255, 255, 255), + game["away"], + ) + graphics.DrawText( + canvas, + font_small, + 18, + 27, + graphics.Color(255, 255, 255), + game["home"], + ) + + graphics.DrawText( + canvas, + font, + 40, + 13, + graphics.Color(255, 255, 255), + str(game["away_score"]), + ) + graphics.DrawText( + canvas, + font, + 40, + 29, + graphics.Color(255, 255, 255), + str(game["home_score"]), + ) + # --- Main loop --- def run():