Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- mon.clear()
- e = os.pullEvent()
- Xcenter = mon.getSize(x)
- Ycenter = mon.getSize(y)
- print("X axis is ",Xcenter)
- print("Y axis is ",Ycenter)
- x = Xcenter/2-1
- y = Ycenter/4
- mon.setBackgroundColor(colors.red)
- for i = 1,5 do
- mon.setCursorPos(x, y+1)
- for d = 1,5 do
- mon.write(" ")
- end
- y = y+1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement