View difference between Paste ID: 7JcQ7G0F and v67P87Q2
SHOW: | | - or go back to the newest paste.
1
rednet.open("front")
2
local mn = peripheral.wrap("top")
3
mn.setBackgroundColor(colors.black)
4
mn.clear()
5
local sx,sy = mn.getSize()
6
for i=1,sy do
7
  mn.setCursorPos(2,i)
8
  mn.setBackgroundColor(colors.orange)
9
  mn.write(" ")
10
  mn.setCursorPos(sx-1,i)
11
  mn.write(" ")
12
  os.sleep(0.025)
13
end
14
for g=3,sx do
15
for i=1,sy do
16
  mn.setCursorPos(g,i)
17
  mn.setBackgroundColor(colors.red)
18
  mn.write(" ")
19
end
20
  if(g == sx-2) then
21
    break
22
  end
23
end
24
mn = peripheral.wrap("monitor_10")
25
for i=1,sy do
26
  mn.setCursorPos(2,i)
27
  mn.setBackgroundColor(colors.orange)
28
  mn.write(" ")
29
  mn.setCursorPos(sx-1,i)
30
  mn.write(" ")
31
  os.sleep(0.025)
32
end
33
for g=3,sx do
34
for i=1,sy do
35
  mn.setCursorPos(g,i)
36
  mn.setBackgroundColor(colors.red)
37
  mn.write(" ")
38
end
39
  if(g == sx-2) then
40
    break
41
  end
42
end