Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("monApi")
- local function pixel(x, y, color, monitor)
- monitor.setBackgroundColor(color)
- monitor.setCursorPos(x, y)
- monitor.write(" ")
- monitor.setBackgroundColor(colors.black)
- end
- local Args = {...}
- mon = monApi.wrapMonitor("top")
- mon.clear()
- graph1 = mon.createSection(1,1,12,12)
- graph1.clear()
- graph1.setCursorPos(2,2)
- graph1.write(Args[1])
- pixel(5,5,colors.lime,graph1)
- pixel(6,6,colors.lime,graph1)
- pixel(4,3,colors.lime,graph1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement