JFrameXI

easterEgg

Nov 12th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. -- Wrap the monitor
  2. local mon = peripheral.wrap("monitor_8") -- Change this to your monitor peripheral
  3. mon.setTextScale(0.5)
  4. mon.clear()
  5. mon.setBackgroundColor(colors.black)
  6. mon.setTextColor(colors.white)
  7.  
  8. local w, h = mon.getSize()
  9.  
  10. -- ASCII Art
  11. local art = {
  12. " $$$$$$\\ $$\\ $$\\ $$\\ $$\\ $$\\ $$\\ ",
  13. "$$ __$$\\ \\__|$$ | $$ | \\__| $$ | $$ | ",
  14. "$$ / $$ |$$$$$$$\\ $$$$$$$\\ $$\\ $$ | $$\\ $$$$$$\\ $$$$$$$\\ $$$$$$$\\ $$$$$$\\ $$\\ $$$$$$$\\ $$ | $$\\ $$$$$$\\ ",
  15. "$$$$$$$$ |$$ __$$\\ $$ __$$\\ $$ |$$ | $$ |$$ __$$\\ $$ __$$\\ $$ _____|\\_$$ _| $$ |$$ __$$\\ $$ | $$ |\\_$$ _| ",
  16. "$$ __$$ |$$ | $$ |$$ | $$ |$$ |$$$$$$ / $$$$$$$$ |$$ | $$ | \\$$$$$$\\ $$ | $$ |$$ | $$ |$$$$$$ / $$ | ",
  17. "$$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ _$$< $$ ____|$$ | $$ | \\____$$\\ $$ |$$\\ $$ |$$ | $$ |$$ _$$< $$ |$$\\ ",
  18. "$$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ | \\$$\\ \\$$$$$$$\\ $$ | $$ | $$$$$$$ | \\$$$$ |$$ |$$ | $$ |$$ | \\$$\\ \\$$$$ |",
  19. "\\__| \\__|\\__| \\__|\\__| \\__|\\__|\\__| \\__| \\_______|\\__| \\__| \\_______/ \\____/ \\__|\\__| \\__|\\__| \\__| \\____/ ",
  20. }
  21.  
  22. -- Function to center text
  23. local function centerText(y, text)
  24. local x = math.floor((w - #text) / 2) + 1
  25. mon.setCursorPos(x, y)
  26. mon.write(text)
  27. end
  28.  
  29. -- Display the art
  30. local startY = math.floor((h - #art) / 2) + 1
  31. for i, line in ipairs(art) do
  32. centerText(startY + i - 1, line)
  33. end
  34.  
Advertisement
Add Comment
Please, Sign In to add comment