robocyclone

ComputerCraft Pattern Lock

Nov 5th, 2019
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2. monitor.setTextScale(.5)
  3. monitor.setBackgroundColor(colors.white)
  4. monitor.clear()
  5. --local rsOut =
  6.  
  7. local pins = {}
  8.  
  9. for i = 1, 3 do
  10.     for j = 1, 3 do
  11.         table.insert(pins, window.create(monitor, i^2, j^2, 1, 1))
  12.     end
  13. end
  14.  
  15. for k, v in pairs(pins) do
  16.     v.setBackgroundColor(colors.gray)
  17.     v.clear()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment