Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local z = 1
- while true do
- local event, button, x, y = os.pullEvent( "mouse_click" )
- local i = 0
- term.setBackgroundColor(32768/z)
- z = 1
- while i < x do
- i = i+1
- z = z*2
- if z > 32768 then
- z = 1
- end
- end
- term.setCursorPos(x,y)
- term.setTextColor(z)
- print(z,x,y)
- term.scroll(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement