diff --git a/colors/scoreboard.json.example b/colors/scoreboard.json.example index b2275f36..b016193b 100644 --- a/colors/scoreboard.json.example +++ b/colors/scoreboard.json.example @@ -128,6 +128,11 @@ "r": 255, "g": 235, "b": 59 + }, + "strikeout": { + "r": 255, + "g": 0, + "b": 0 } }, "batter_count": { diff --git a/coordinates/w128h32.json.example b/coordinates/w128h32.json.example index 4324094b..6c224155 100644 --- a/coordinates/w128h32.json.example +++ b/coordinates/w128h32.json.example @@ -186,7 +186,7 @@ "play_result": { "x": 60, "y": 30, - "desc_length": "Short" + "desc_length": "short" } }, "pregame": { diff --git a/coordinates/w32h32.json.example b/coordinates/w32h32.json.example index da1604d0..5d8b0ed6 100644 --- a/coordinates/w32h32.json.example +++ b/coordinates/w32h32.json.example @@ -166,7 +166,7 @@ "play_result": { "x": 33, "y": 33, - "desc_length": "Short" + "desc_length": "short" } }, "batter_count": { diff --git a/coordinates/w64h32.json.example b/coordinates/w64h32.json.example index 4a25e93d..0a268819 100644 --- a/coordinates/w64h32.json.example +++ b/coordinates/w64h32.json.example @@ -143,7 +143,7 @@ "x": 15, "y": 29, "font_name": "5x7", - "desc_length": "Short" + "desc_length": "short" } }, diff --git a/coordinates/w64h64.json.example b/coordinates/w64h64.json.example index 93fe3d10..611f98f0 100644 --- a/coordinates/w64h64.json.example +++ b/coordinates/w64h64.json.example @@ -142,7 +142,7 @@ "play_result": { "x": 31, "y": 36, - "desc_length": "Short" + "desc_length": "short" } }, "pregame": { diff --git a/renderers/games/game.py b/renderers/games/game.py index 95e01139..4773c4dc 100644 --- a/renderers/games/game.py +++ b/renderers/games/game.py @@ -63,7 +63,10 @@ def _render_at_bat(canvas, layout, colors, atbat: AtBat, text_pos, play_result, def __render_play_result(canvas, layout, colors, play_result): coords = layout.coords("atbat.play_result") - color = colors.graphics_color("atbat.play_result") + if "strikeout" in play_result: + color = colors.graphics_color("atbat.strikeout") + else: + color = colors.graphics_color("atbat.play_result") font = layout.font("atbat.play_result") try: text = PLAY_RESULTS[play_result][coords["desc_length"]]