Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tx,ty = term.getSize()
- local tArgs = {...}
- function lsd()
- for i=1,ty do
- term.setCursorPos(1,i)
- for x=1,tx do
- term.setCursorPos(x,i)
- local color = {
- [1] = colors.red,
- [2] = colors.blue,
- [3] = colors.green,
- [4] = colors.pink,
- [5] = colors.orange,
- [6] = colors.gray,
- [7] = colors.yellow,
- [8] = colors.purple
- }
- term.setBackgroundColor(color[math.random(1,8)])
- write(" ")
- end
- end
- end
- for i=1,50 do
- lsd()
- os.sleep(0.01)
- end
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- cmd = ""
- if #tArgs == 0 then
- else
- for i=1,#tArgs do
- cmd = cmd.." "..tArgs[i]
- end
- shell.run(cmd)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement