Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local canvas = nil
- function love.load(arg)
- canvas = love.graphics.newCanvas()
- love.graphics.setCanvas(canvas)
- love.graphics.setColor(1, 1, 1, 1)
- for i = 1, 256 * 256 * 0.75 do
- love.graphics.rectangle("fill", math.random(0, 255), math.random(0, 255, 1, 1)
- end
- love.graphics.setCanvas()
- end
- function love.graphics.draw()
- love.graphics.draw(canvas, 0, 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement