clean up
This commit is contained in:
+1
-2
@@ -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 ---
|
||||||
|
|||||||
@@ -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)
|
|
||||||
@@ -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")
|
|
||||||
@@ -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"))
|
|
||||||
@@ -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"))
|
||||||
Reference in New Issue
Block a user