Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- function draw(xmin, xmax, ymin, ymax, c)
- mon.setBackgroundColor(c)
- mon.setCursorPos(xmin, ymin)
- if xmax ~= 1 then
- for i = 1, xmax, 1 do
- mon.write(" ")
- mon.setCursorPos(xmin+i, ymin)
- end
- end
- if ymax ~= 1 then
- for k = 1, ymax, 1 do
- mon.write(" ")
- mon.setCursorPos(xmin, ymin+k)
- end
- end
- mon.setBackgroundColor(32768)
- end
Advertisement
Add Comment
Please, Sign In to add comment