This commit is contained in:
2026-06-25 22:38:32 -04:00
parent f0df42bd2f
commit 2e709d09bb
5 changed files with 24 additions and 27 deletions
+1 -2
View File
@@ -2,8 +2,7 @@ import requests
import utils.logos as logos import utils.logos as logos
from PIL import Image, ImageDraw from PIL import Image, ImageDraw
from rgbmatrix import graphics from rgbmatrix import graphics
from utils.colors import Colors from utils.vars import Colors, font, font_small
from utils.fonts import font, font_small
from time import time from time import time
# --- State --- # --- State ---
-9
View File
@@ -1,9 +0,0 @@
from enum import Enum
# --- Pre-built colors ---
class Colors(Enum):
WHITE = (255, 255, 255)
YELLOW = (255, 200, 0)
RED = (255, 50, 50)
SABRES_BLUE = (0, 135, 48)
SABRES_GOLD = (252, 20, 210)
-6
View File
@@ -1,6 +0,0 @@
import os
from pathlib import Path
SCRIPT_DIR = Path(__file__).parent.resolve()
ASSET_DIR = os.path.join(SCRIPT_DIR, "../assets")
LOGO_DIR = os.path.join(ASSET_DIR, "logos")
-10
View File
@@ -1,10 +0,0 @@
from rgbmatrix import graphics
from utils.data import ASSET_DIR
import os
font = graphics.Font()
font_small = graphics.Font()
font_big = graphics.Font()
font.LoadFont(os.path.join(ASSET_DIR, "fonts/7x13.bdf"))
font_small.LoadFont(os.path.join(ASSET_DIR, "fonts/5x7.bdf"))
font_big.LoadFont(os.path.join(ASSET_DIR, "fonts/9x18.bdf"))
+23
View File
@@ -0,0 +1,23 @@
from enum import Enum
from pathlib import Path
from rgbmatrix import graphics
import os
# --- Pre-built colors ---
class Colors(Enum):
WHITE = (255, 255, 255)
YELLOW = (255, 200, 0)
RED = (255, 50, 50)
SABRES_BLUE = (0, 135, 48)
SABRES_GOLD = (252, 20, 210)
SCRIPT_DIR = Path(__file__).parent.resolve()
ASSET_DIR = os.path.join(SCRIPT_DIR, "../assets")
LOGO_DIR = os.path.join(ASSET_DIR, "logos")
font = graphics.Font()
font_small = graphics.Font()
font_big = graphics.Font()
font.LoadFont(os.path.join(ASSET_DIR, "fonts/7x13.bdf"))
font_small.LoadFont(os.path.join(ASSET_DIR, "fonts/5x7.bdf"))
font_big.LoadFont(os.path.join(ASSET_DIR, "fonts/9x18.bdf"))