From 73a09d8f2c4ed79703cae1ab8251d1da6781363e Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 21 Apr 2025 21:19:55 -0500 Subject: [PATCH] changed scale ChuckBuilds Sign --- ChuckBuilds.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChuckBuilds.py b/ChuckBuilds.py index 893e23b3..985888d8 100644 --- a/ChuckBuilds.py +++ b/ChuckBuilds.py @@ -62,6 +62,10 @@ def main(): x = (matrix.width - text_width) // 2 y = (matrix.height - text_height) // 2 + # Ensure text is fully visible + x = max(0, min(x, matrix.width - text_width)) + y = max(0, min(y, matrix.height - text_height)) + # Draw the text draw.text((x, y), text, font=font, fill=(255, 255, 255))