Center clock
This commit is contained in:
@@ -158,7 +158,7 @@ class Matrix64Display(SampleBase):
|
||||
|
||||
# === Clock (centered) ===
|
||||
time_x = (64 - len(time_str) * 7) // 2
|
||||
graphics.DrawText(canvas, time_font, time_x, 38, time_color, time_str)
|
||||
graphics.DrawText(canvas, time_font, time_x, 39, time_color, time_str)
|
||||
|
||||
# === Horizontal line below clock ===
|
||||
graphics.DrawLine(canvas, 0, 42, 63, 42, line_color)
|
||||
|
||||
Reference in New Issue
Block a user