Advertisement
ThatGravyBoat

Untitled

Aug 12th, 2023
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2. local chars = {
  3. "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=",
  4. "~", "!", "@", "#", "$", "%", "^", "&", "*", "?", ":", "_", "+"
  5. }
  6.  
  7. function drawText(x, y, text, color)
  8. monitor.setCursorPos(x, y)
  9. monitor.setBackgroundColor(color)
  10. monitor.write(text)
  11. end
  12.  
  13. while true do
  14. for x = 1, 51 do
  15. for y = 1, 19 do
  16. drawText(x, y, chars[math.random(1, #chars)])
  17. end
  18. end
  19. os.sleep(1/24)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement