implement 'Run' button
Dependencies
- [2]
PRE6XPRNresponsively increase/decrease font height - [*]
R5QXEHUIsomebody stop me - [*]
5RUFNRJOstart of the visual skeleton - [*]
ZM7NOBRMnew fork: carousel shell
Change contents
- file addition: 0043-map[4.2]
map = function(arr, f)local result = {}for _, x in ipairs(arr) dotable.insert(result, f(x))endreturn resultend - file addition: 0042-draw_canvas[4.2]
draw_canvas = function()if Canvas == nil then return endlove.graphics.setBlendMode('alpha', 'premultiplied')love.graphics.setColor(1,1,1,1)love.graphics.draw(Canvas, 0,0)love.graphics.setBlendMode('alpha')end - file addition: 0041-Canvas[4.2]
Canvas = nil - edit in 0021-draw_menu at line 13
local buf = table.concat(map(Editor_state.lines, function(line) return line.data end), '\n')Canvas = love.graphics.newCanvas()love.graphics.setCanvas(Canvas)love.graphics.push('all')love.graphics.setBackgroundColor(1,1,1)love.graphics.setColor(0,0,0)local status, result = live.eval(buf)if not status thenprint(result)endlove.graphics.pop()love.graphics.setCanvas() - edit in 0012-on.draw at line 3
draw_canvas()--if Canvas then return end