LordMZTE

Untitled

Apr 6th, 2023 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. local logo_lines = {" ", " r sssssssssss r ", " rrr sssssssss rrr ", " rrrrr sssss rrrrr ", " rrrrr sss rrrrr ", " rrrr rrrr ", " rrr rrr ", " rrrrrr rrrrrr ", " rrrrrrrrrr rrrrrrrrrr ", " rrrr rrrr ", " rrr rrr ", " rrrrrr rrrrrr ", " rrrrrrrrrr rrrrrrrrrr ", " rrrrrrrrr ", " rrrrr ", " ", " ", " ggg ", " ggg gggggg gg ", " gg gg ggg ggggggg gg ", " ggg gggg ggg gg gg ", " gg g gg ggg gg gg ", " ggg ggg ggg gg gg ", " ggg ggg ", " ", " "}
  2. local mon = peripheral.wrap("top")
  3. for y, line in ipairs(logo_lines) do
  4. mon.setCursorPos(1, y)
  5. for i = 1, #line do
  6. local s = string.sub(line, i, i)
  7. local function _2_(...)
  8. local _1_ = s
  9. if (_1_ == "r") then
  10. return colors.red
  11. elseif (_1_ == "s") then
  12. return colors.lightGray
  13. elseif (_1_ == "g") then
  14. return colors.gray
  15. elseif true then
  16. local _ = _1_
  17. return colors.black
  18. else
  19. return nil
  20. end
  21. end
  22. mon.setBackgroundColor(_2_(...))
  23. mon.write(" ")
  24. end
  25. end
  26. while true do
  27. os.pullEvent()
  28. end
  29. return nil
  30.  
Add Comment
Please, Sign In to add comment