Advertisement
Guest User

keyboard

a guest
Aug 23rd, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --functions
  2. function key(l,xs,x,y)
  3.  
  4.  --for yl = y, y + ys - 1, 1 do
  5.     for xl = x, x + xs + 1, 1 do
  6.       paintutils.drawPixel(xl,yl,colors.gray)
  7.       term.setCursorPos(x + 1,y)
  8.       print(l)
  9.     end
  10.  --end
  11.  
  12. end
  13.  
  14. --main
  15. paintutils.drawPixel(1,1, 0x8000)
  16. term.clear()
  17.  
  18. y = 2
  19. for x = 1, 13, 1 do
  20.   key(,,x,y)
  21.  
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement