Mothback/code/canvasses/darkness.lua

16 lines
307 B
Lua
Raw Permalink Normal View History

Canvas.Darkness = Canvas:New("Darkness")
2022-02-22 00:14:38 +00:00
function Canvas.Darkness:Reset()
love.graphics.setCanvas(Canvas.Darkness.canvas)
2022-02-26 02:56:53 +00:00
love.graphics.setBlendMode("replace")
2022-02-22 00:14:38 +00:00
love.graphics.setColor(0,0,0,0.95)
love.graphics.rectangle(
"fill",
0,
0,
self.width,
self.height
)
love.graphics.setCanvas()
end