Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- os.pullEvent = os.pullEventRaw
- local monitor = peripheral.find("monitor")
- --local printer = peripheral.wrap("printer_2")
- --local drive = "drive_3"
- --local speaker = peripheral.wrap("speaker_1")
- monitor.clear()
- for i = 0, 15 do -- Convert to a greyscale palette
- local c = math.max(255 - i * 16, 0)
- local color = "0x"..string.rep(string.format("%02x", c), 3)
- monitor.setPaletteColor(2 ^ i, tonumber(color, 16))
- end
- term.redirect(monitor)
- monitor.setTextScale(0.5)
- paintutils.drawFilledBox(1, 1, 36, 24, 4096)
- term.setCursorPos(10, 5)
- term.setTextColor(32)
- term.setBackgroundColor(4096)
- term.write("SC Banking Company")
- term.setCursorPos(10, 7)
- term.write("Please insert card")
- term.setCursorPos(12, 8)
- term.write("into the slot.")
- local logo = "9997779cc7cc9997cccc97cc999777"
- for i = 1, 5 do
- local line = logo:sub((i - 1) * 6 + 1, i * 6)
- for j = 1, 6 do
- local bit = 2 ^ tonumber("0x"..line:sub(j, j), 16)
- paintutils.drawPixel(16 + (j - 1), 14 + i, bit)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement