From ece853c9d35601d7fced143203d8d5d467cbca36 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 15 Jan 2021 16:00:15 -0500 Subject: [PATCH] Swapped opacity and brightness for hold color --- tetris/modes/gamemode.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index e718a45..95a0686 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -561,7 +561,8 @@ function GameMode:setNextOpacity(i) end function GameMode:setHoldOpacity() - love.graphics.setColor(1, 1, 1, self.held and 0.6 or 1) + local colour = self.held and 0.6 or 1 + love.graphics.setColor(colour, colour, colour, 1) end function GameMode:drawScoringInfo()