Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- mon.setCursorPos(1,3)
- mon.setBackgroundColor(colors.blue)
- mon.setTextScale(2.5)
- mon.clear()
- function center (text)
- x, y = mon.getSize()
- x1, y1 = mon.getCursorPos()
- mon.setCursorPos((math.floor(x/2) - (math.floor(#text/2))+1), y1)
- mon.write(text)
- end
- center("Welcome to Dusty's")
- mon.setCursorPos(1,4)
- center("There is a lot")
- mon.setCursorPos(1,5)
- center("of great offers")
- mon.setCursorPos(1,6)
- center("all the times")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement