From 541def8c7cbe64b4c3ad119a468ab78e31ff87a4 Mon Sep 17 00:00:00 2001 From: checamon Date: Sun, 19 Dec 2021 12:34:59 +0100 Subject: [PATCH] fade colors --- src/states/game/FadeInState.lua | 2 +- src/states/game/FadeOutState.lua | 2 +- src/states/game/StartState.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/states/game/FadeInState.lua b/src/states/game/FadeInState.lua index b237aab..0ad3e8c 100644 --- a/src/states/game/FadeInState.lua +++ b/src/states/game/FadeInState.lua @@ -29,5 +29,5 @@ function FadeInState:render() love.graphics.setColor(self.r, self.g, self.b, self.opacity) love.graphics.rectangle('fill', 0, 0, VIRTUAL_WIDTH, VIRTUAL_HEIGHT) - love.graphics.setColor(1/255, 1/255, 1/255, 1/255) + love.graphics.setColor(255/255, 255/255, 255/255, 255/255) end \ No newline at end of file diff --git a/src/states/game/FadeOutState.lua b/src/states/game/FadeOutState.lua index 5f3226d..aa4a3a6 100644 --- a/src/states/game/FadeOutState.lua +++ b/src/states/game/FadeOutState.lua @@ -33,5 +33,5 @@ function FadeOutState:render() love.graphics.setColor(self.r, self.g, self.b, self.opacity) love.graphics.rectangle('fill', 0, 0, VIRTUAL_WIDTH, VIRTUAL_HEIGHT) - love.graphics.setColor(1/255, 1/255, 1/255, 255/255) + love.graphics.setColor(255/255, 255/255, 255/255, 255/255) end \ No newline at end of file diff --git a/src/states/game/StartState.lua b/src/states/game/StartState.lua index 6a61d7b..f3ebfe5 100644 --- a/src/states/game/StartState.lua +++ b/src/states/game/StartState.lua @@ -11,7 +11,7 @@ end function StartState:update(dt) if love.keyboard.wasPressed('enter') or love.keyboard.wasPressed('return') then gStateStack:push(FadeInState({ - r = 255/255, g = 255/255, b = 255/255 + r = 1/255, g = 1/255, b = 1/255 }, 1, function() gSounds['intro-music']:stop()