summaryrefslogtreecommitdiff
path: root/beeite.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-03-30 23:42:27 +0000
committerubq323 <ubq323@ubq323.website>2024-03-30 23:42:27 +0000
commite879be163aec661b5c194186dba487e3714ba422 (patch)
tree5f40996972b7e2e3adcbf16f9f0270708e3f50a4 /beeite.lua
parent336bb0289eee8df7d6632794a4c7d54a32e49019 (diff)
launch beeite
Diffstat (limited to 'beeite.lua')
-rw-r--r--beeite.lua21
1 files changed, 21 insertions, 0 deletions
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)