Advertisement
shadowkat1010

matrix

Jan 11th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. x, y = term.getSize()
  2. term.setTextColor(colours.lime)
  3. term.clear()
  4. function draw()
  5. term.setCursorPos(math.random(1,x),math.random(1,y))
  6. write(string.char(math.random(32,126)))
  7. curx, cury = term.getCursorPos()
  8. end
  9. function run()
  10. while true do
  11.  num = 0
  12.  repeat
  13.  draw()
  14.  num = num + 1
  15.  until num == 100
  16.  sleep(0)
  17. end
  18. end
  19. run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement