Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("top")
- function centerText(text,yVal)
- length = string.len(text)
- minus = math.floor(wM-length)
- x = math.floor(minus/2)
- monitor.setCursorPos(x+1,yVal)
- monitor.write(text)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement