ecco7777

colorchanging text with tables

Jun 27th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. tab={1,2,4,8,16,32,64,512,1024,2048,4096,8192,16384}
  2. x=1
  3. while true do
  4. term.setTextColor(tab[x])
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. term.write("ecco7777")
  8. x=x+1
  9. if x > 13 then
  10. x = 1
  11. end
  12. sleep(0.2)
  13. end
Add Comment
Please, Sign In to add comment