View difference between Paste ID: UyKurq85 and 8KabUmCj
SHOW: | | - or go back to the newest paste.
1
mon1 = peripheral.wrap("monitor_99")
2
mon2 = peripheral.wrap("monitor_100")
3
mon3 = peripheral.wrap("monitor_101")
4
5
local xcur1 , ycur1, xcur2, ycur2, xcur3, ycur3 = 1, 1, 1, 1, 1, 1
6
7
mon1.setTextScale(3.5)
8
mon2.setTextScale(3.5)
9
mon3.setTextScale(3.5)
10
11
local x1, y1 = mon1.getSize()
12
13
local x2, y2 = mon2.getSize()
14
15
local x3, y3 = mon3.getSize()
16
17
--print(x1)
18
--print(x2)
19
--print(x3)
20
21
22
23
while true do
24
25
  mon1.setBackgroundColor(colors.black)
26
  mon2.setBackgroundColor(colors.black)
27
  mon3.setBackgroundColor(colors.black)
28
  mon1.clear()
29
  mon2.clear()
30
  mon3.clear()
31
  
32
  if xcur1 <= x1 then
33
    mon1.setCursorPos(xcur1,1)
34
    mon1.setBackgroundColor(colors.yellow)
35
    mon1.write("     ")
36
    xcur1 = xcur1 + 1
37
  elseif xcur2 <= x2 then
38
    mon2.setCursorPos(xcur2,1)
39
    mon2.setBackgroundColor(colors.yellow)
40
    mon2.write("     ")
41
    xcur2 = xcur2 + 1
42
  elseif xcur3 <= x3 then
43
    mon3.setCursorPos(xcur3,1)
44
    mon3.setBackgroundColor(colors.yellow)
45
    mon3.write("     ")
46
    xcur3 = xcur3 + 1
47
    if xcur3 > x3 then
48
      xcur1 = 1
49
      xcur2 = 1
50
      xcur3 = 1
51
    end
52
  end
53
  sleep(0.1)
54
end