Skip to content

Commit

Permalink
Remove RCS from fade in/out due to title in vnjson
Browse files Browse the repository at this point in the history
  • Loading branch information
josefnpat committed Sep 3, 2019
1 parent d1f61ce commit 740824b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/fade.lua
@@ -1,17 +1,19 @@
local image = love.graphics.newImage("assets/loading.png")
--local image = love.graphics.newImage("assets/loading.png")

return function (alpha)
alpha = math.max(0,math.min(255,alpha))
if alpha > 0 then
local prev = {love.graphics.getColor()}
love.graphics.setColor(0,0,0,alpha)
love.graphics.rectangle("fill",0,0,love.graphics.getWidth(),love.graphics.getHeight())
--[[
love.graphics.setColor(255,255,255,alpha)
love.graphics.draw(
image,
(love.graphics.getWidth()-image:getWidth())/2,
(love.graphics.getHeight()-image:getHeight())/2
)
--]]
love.graphics.setColor(prev)
end
end

0 comments on commit 740824b

Please sign in to comment.