Skip to content

Commit

Permalink
Fixing issue in goal score animation resulting in misaligned image.
Browse files Browse the repository at this point in the history
  • Loading branch information
gidger committed Mar 11, 2024
1 parent 569846a commit 7c26e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/matrix_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def goal_fade(matrix, scoreboard_image, away_score, home_score, away_team_scored
# Fade from red to white. Iterate through the colours and set the image, very short pause in between to look like a smooth fade.
for n in range(scoreboard_image.COLOUR_RED[2], scoreboard_image.COLOUR_WHITE[2]):
scoreboard_image.add_scores(away_score, home_score, away_team_scored, home_team_scored, goal_fade_colour_override=(255, n, n, 255))
matrix.SetImage(scoreboard_image.image)
matrix.SetImage(scoreboard_image.image, -scoreboard_image.H_BUFFER)
time.sleep(.015)


Expand Down

0 comments on commit 7c26e8e

Please sign in to comment.