diff options
-rw-r--r-- | beeite.dat | 1 | ||||
-rw-r--r-- | beeite.lua | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/beeite.dat b/beeite.dat new file mode 100644 index 0000000..57b8182 --- /dev/null +++ b/beeite.dat @@ -0,0 +1 @@ +dep framebuf diff --git a/beeite.lua b/beeite.lua new file mode 100644 index 0000000..bbf6244 --- /dev/null +++ b/beeite.lua @@ -0,0 +1,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) |