Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodeAmount = 4
- function DrawBackground()
- term.setCursorPos(1,1)
- term.setBackgroundColor(1)
- term.setTextColor(32768)
- term.clear()
- sX, sY = term.getSize()
- node = {}
- for i=1, nodeAmount do
- x = math.random(1, sX)
- y = math.random(1, sY)
- table.insert(node, {x,y})
- end
- for i=1, nodeAmount do
- x = node[i][1]
- y = node[i][2]
- for i=1, nodeAmount do
- tx = node[i][1]
- ty = node[i][2]
- paintutils.drawLine(x,y, tx,ty, 32768)
- end
- end
- end
- DrawBackground()
- function UpdateTerm()
- end
- parallel.waitForAll(UpdateTerm)
Add Comment
Please, Sign In to add comment