SHARE
TWEET

Untitled

a guest Sep 17th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local canvas = nil
  2.  
  3. function love.load(arg)
  4.     canvas = love.graphics.newCanvas()
  5.     love.graphics.setCanvas(canvas)
  6.  
  7.     love.graphics.setColor(1, 1, 1, 1)
  8.     for i = 1, 256 * 256 * 0.75 do
  9.         love.graphics.rectangle("fill", math.random(0, 255), math.random(0, 255, 1, 1)
  10.     end
  11.  
  12.     love.graphics.setCanvas()
  13.  
  14. end
  15.  
  16. function love.graphics.draw()
  17.     love.graphics.draw(canvas, 0, 0)
  18. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top