Advertisement
SirSheepe

Untitled

Oct 27th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. -- os.pullEvent = os.pullEventRaw
  3.  
  4. local monitor = peripheral.find("monitor")
  5. --local printer = peripheral.wrap("printer_2")
  6. --local drive = "drive_3"
  7. --local speaker = peripheral.wrap("speaker_1")
  8.  
  9. monitor.clear()
  10.  
  11. for i = 0, 15 do -- Convert to a greyscale palette
  12. local c = math.max(255 - i * 16, 0)
  13. local color = "0x"..string.rep(string.format("%02x", c), 3)
  14. monitor.setPaletteColor(2 ^ i, tonumber(color, 16))
  15. end
  16.  
  17. term.redirect(monitor)
  18. monitor.setTextScale(0.5)
  19. paintutils.drawFilledBox(1, 1, 36, 24, 4096)
  20.  
  21. term.setCursorPos(10, 5)
  22. term.setTextColor(32)
  23. term.setBackgroundColor(4096)
  24. term.write("SC Banking Company")
  25. term.setCursorPos(10, 7)
  26. term.write("Please insert card")
  27. term.setCursorPos(12, 8)
  28. term.write("into the slot.")
  29.  
  30. local logo = "9997779cc7cc9997cccc97cc999777"
  31.  
  32. for i = 1, 5 do
  33. local line = logo:sub((i - 1) * 6 + 1, i * 6)
  34. for j = 1, 6 do
  35. local bit = 2 ^ tonumber("0x"..line:sub(j, j), 16)
  36. paintutils.drawPixel(16 + (j - 1), 14 + i, bit)
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement