Advertisement
Guest User

textexample

a guest
Dec 2nd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local z = 1
  2. while true do
  3.   local event, button, x, y = os.pullEvent( "mouse_click" )
  4.   local i = 0
  5.   term.setBackgroundColor(32768/z)
  6.   z = 1
  7.   while i < x do
  8.     i = i+1
  9.     z = z*2
  10.     if z > 32768 then
  11.       z = 1
  12.     end
  13.   end
  14.   term.setCursorPos(x,y)
  15.   term.setTextColor(z)
  16.   print(z,x,y)
  17.   term.scroll(1)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement