Advertisement
Guest User

scroll

a guest
Feb 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. mon = peripheral.wrap("back")
  2. mon.clear()
  3. width,height =mon.getSize()
  4. text = "Alex sucks donkey balls"
  5. colour = 1
  6.  
  7. while true do
  8.   for i=1,width*2 do
  9.     if colour > 32768 then
  10.       colour = 1
  11.     else  
  12.       mon.clear()
  13.       mon.setCursorPos(width-i,height/2)
  14.       mon.setTextColour(colour)
  15.       mon.write(text)
  16.       sleep(.1)
  17.       colour = colour + colour
  18.     end
  19.   end  
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement