Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("back")
- monitor.clear()
- local function setup()
- monitor.setTextColor(colors.black)
- monitor.setBackgroundColor(colors.red)
- monitor.setTextScale(5)
- end
- --Wasted Lines
- --local function CenterText()
- --local w,h = monitor.getSize()
- --monitor,setCursorPos(math.floor(w / 2 - text:len() / 2 + .5), math.floor(h / 2+ .5))
- local function centerTextXY(text)
- local w, h = monitor.getSize()
- monitor.setCursorPos(math.floor(w / 2 - text:len() / 2 + 1.75), math.floor(h / 2 ))
- monitor.write(text)
- end
- setup()
- centerTextXY("B1/F")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement