asteroidsteam icon

LSD

asteroidsteam | PRO | 04/01/18 09:58:28 PM UTC | 0 ⭐ | 409 👁️ | Never ⏰ | []
Lua |

730 B

|

None

|

0 👍

/

0 👎

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

Comments