Code: Select all
function love.load()
buffer = love.graphics.newCanvas()
-- buffer:setFilter("nearest")
love.graphics.setCanvas(buffer)
love.graphics.circle("line", 100, 100, 50)
love.graphics.rectangle("line", 100, 100, 100, 100)
-- love.graphics.setBlendMode("replace")
-- love.graphics.setColor(255,255,255)
love.graphics.setCanvas()
end
function love.draw()
--love.graphics.setColor(255,255,255)
love.graphics.draw(buffer)
love.graphics.circle("line", 300, 100, 50)
love.graphics.rectangle("line", 300, 100, 100, 100)
end