change team logo rendering
This commit is contained in:
+3
-6
@@ -99,12 +99,9 @@ def draw_text_overlay(canvas, players, scroll_x):
|
|||||||
def render_player(matrix, img, player, x_offset):
|
def render_player(matrix, img, player, x_offset):
|
||||||
league = "nfl"
|
league = "nfl"
|
||||||
|
|
||||||
away_logo = matrix.load_logo(league, player['team'])
|
team_logo = matrix.load_logo(league, player['team'])
|
||||||
home_logo = matrix.load_logo(league, player['team'])
|
if team_logo:
|
||||||
if away_logo:
|
img.paste(team_logo.resize((28, 28)), (x_offset, 0))
|
||||||
img.paste(away_logo.resize((14, 14)), (x_offset, 0))
|
|
||||||
if home_logo:
|
|
||||||
img.paste(home_logo.resize((14, 14)), (x_offset, 16))
|
|
||||||
|
|
||||||
# divider on right edge (except last slot handled by wrapping)
|
# divider on right edge (except last slot handled by wrapping)
|
||||||
for row in range(PANEL_HEIGHT):
|
for row in range(PANEL_HEIGHT):
|
||||||
|
|||||||
Reference in New Issue
Block a user