_G.CONFIG = require("conf").properties local log = require("log") local pal = require("palette").getPalette("CADE-15") local getSandboxEnv = require("sandbox") function sandbox(f) setfenv(f,getSandboxEnv()) end function love.load() require("cindy").applyPatch() scr = love.graphics.newCanvas(256,240) love.graphics.setCanvas(scr) pal.setColor(10) love.graphics.rectangle("fill",0,0,5,5) love.graphics.setCanvas() end function love.update(dt) if love.keyboard.isDown("escape") then love.event.quit() end end function love.draw() love.graphics.setBackgroundColor(0,0,0) love.graphics.setColor(255,255,255) love.graphics.draw(scr,0,0,0,CONFIG.scalefactor,CONFIG.scalefactor) end