Advertisement
Guest User

test1

a guest
Jul 4th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1.  
  2. mon = peripheral.wrap("top")
  3. mon.clear()
  4. e = os.pullEvent()
  5. Xcenter = mon.getSize(x)
  6. Ycenter = mon.getSize(y)
  7. print("X axis is ",Xcenter)
  8. print("Y axis is ",Ycenter)
  9. x = Xcenter/2-1
  10. y = Ycenter/4
  11. mon.setBackgroundColor(colors.red)
  12. for i = 1,5 do
  13.   mon.setCursorPos(x, y+1)
  14.   for d = 1,5 do
  15.     mon.write(" ")
  16.   end
  17.   y = y+1
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement