Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- m.setTextScale(1.5)
- w, h = term.getSize()
- repeat
- m.setBackgroundColor(colors.lightGray)
- m.clear()
- m.setTextColor(colors.blue)
- for y=1, h do
- for x=1, w do
- m.setCursorPos(x, y)
- m.write("=")
- end
- end
- if tX and tY then
- m.setBackgroundColor(colors.lightBlue)
- m.setTextColor(colors.white)
- m.setCursorPos(tX, tY)
- m.write("=")
- end
- event, side, tX, tY = os.pullEvent("monitor_touch")
- m.setBackgroundColor(colors.lightBlue)
- m.setTextColor(colors.white)
- m.setCursorPos(tX, tY)
- m.write("=")
- sleep(0)
- until nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement