Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- mon.setCursorPos(1,2)
- mon.setBackgroundColor(colors.cyan)
- mon.setTextScale(2)
- mon.setTextColor(colors.black)
- 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 Retro's")
- mon.setCursorPos(1,3)
- center("I sell everything")
- mon.setCursorPos(1,4)
- center("at great prices.")
- mon.setCursorPos(1,5)
- center("Have a nice day")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement