diff --git a/src/renderer/main.lua b/src/renderer/main.lua index 6f564d8..20a74e9 100644 --- a/src/renderer/main.lua +++ b/src/renderer/main.lua @@ -6,8 +6,8 @@ local text = "" --Set up the canvas. assert( lg.getCanvasFormats( false ).stencil8, "Error: 8-bit stencil buffers not supported on this system." ) local stencil = love.graphics.newCanvas( - 25, - 50, + lg.getWidth(), + lg.getHeight(), { type = "2d", format = "stencil8", @@ -35,8 +35,9 @@ end function love.draw() lg.setCanvas{{canvas}, depthstencil = {stencil}} - lg.setColor( 1,1,1,1 ) - lg.rectangle( "fill", 0, 0, 400, 400 ) + lg.clear() + lg.setColor( 1,1,1,0.3 ) + lg.rectangle( "fill", time * 15.0 , 0, 400, 400 ) lg.setCanvas() lg.draw( canvas ) end