From e879be163aec661b5c194186dba487e3714ba422 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 30 Mar 2024 23:42:27 +0000 Subject: launch beeite --- beeite.dat | 1 + beeite.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 beeite.dat create mode 100644 beeite.lua 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) -- cgit v1.2.3