diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-01 02:43:51 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-01 02:43:51 +0100 |
commit | 890d45c4c9b703fa99e9c40f60cf2b659ee6fa51 (patch) | |
tree | a622cd029a99c329319a0ed17ed9c05e42115191 | |
parent | 1e39dcd6920448d4e9ec936dca9b4c8fd9b677a2 (diff) |
launch john
-rw-r--r-- | john.lua | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,16 +14,18 @@ if monitors == nil or #monitors < 1 then error("need john.monitors setting") end +fb:ppm(fs.open("img/john.pnm","rb")) +local xoffs = 0 + for ix,iname in ipairs(monitors) do print("doing",ix,iname) local mon = peripheral.wrap(iname) mon.clear() mon.setTextScale(0.5) - fb:clear() - fb:ppm(fs.open("img/john.pnm","rb")) local t = term.redirect(mon) - local _, bee = pcall(function() fb:present(30,0) end) + local _, bee = pcall(function() fb:present(xoffs,0) end) term.redirect(t) + xoffs = xoffs + (mon.getSize())*2 + 8 print(bee) end |