diff options
author | ubq323 <ubq323@ubq323.website> | 2024-03-30 23:42:27 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-03-30 23:42:27 +0000 |
commit | e879be163aec661b5c194186dba487e3714ba422 (patch) | |
tree | 5f40996972b7e2e3adcbf16f9f0270708e3f50a4 | |
parent | 336bb0289eee8df7d6632794a4c7d54a32e49019 (diff) |
launch beeite
-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) |