summaryrefslogtreecommitdiff
path: root/beeite.lua
blob: bbf6244a2f026498737125c312eaaa1a4ac9debb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local framebuf = require("framebuf")
local fb = framebuf.new()

fb:ppm(fs.open("e.pnm","rb"))

for x = 1, 300 do
    for y = 1, 300 do
        local c = (x + y) % 2
--        fb:plot(x, y, c, c, c)
    end
end

local m = peripheral.wrap "bottom"
m.clear()
m.setTextScale(0.5)
local t = term.redirect(m)
local _, bee = pcall(function()
    fb:present()
end)
term.redirect(t)
print(bee)