kerrnel

TPPI Title

Jun 15th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. -- TPPI Title Logo
  2. -- by MCKerrnel
  3. --
  4. -- YouTube: http://www.youtube.com/MCKerrnel
  5. -- Twitter: @MCKerrnel
  6. --
  7. -- This is just a function to display
  8. -- the TPPI logo in the center of the
  9. -- monitor. It assumes the general API
  10. -- is already loaded alongside.
  11. function title(x, y)
  12. mlapi.tp("Welcome to:", x - 1, 3, colors.white, colors.black)
  13. mlapi.tp("The Kerrnel Does FTB", x + 11, 3, colors.red, colors.black)
  14.  
  15. TPPI(x, y)
  16. end
  17.  
  18. function TPPI(x, y)
  19. -- Cyan
  20. T(colors.green, x - 1, y + 1)
  21. P(colors.green, x - 1, y + 1)
  22. P(colors.green, x + 7, y + 1)
  23. I(colors.green, x - 1, y + 1)
  24.  
  25. -- Pink
  26. T(colors.pink, x + 1, y - 1)
  27. P(colors.pink, x + 1, y - 1)
  28. P(colors.pink, x + 9, y - 1)
  29. I(colors.pink, x + 1, y - 1)
  30.  
  31. -- White
  32. T(colors.white, x, y)
  33. P(colors.white, x, y)
  34. P(colors.white, x + 8, y)
  35. I(colors.white, x, y)
  36. end
  37.  
  38. function T(colour, x, y)
  39. mlapi.tp(" ", x, y, colors.white, colour)
  40. mlapi.tp(" ", x, y + 1, colors.white, colour)
  41. mlapi.tp(" ", x + 2, y + 2, colors.white, colour)
  42. mlapi.tp(" ", x + 2, y + 3, colors.white, colour)
  43. mlapi.tp(" ", x + 2, y + 4, colors.white, colour)
  44. mlapi.tp(" ", x + 2, y + 5, colors.white, colour)
  45. mlapi.tp(" ", x + 2, y + 6, colors.white, colour)
  46. mlapi.tp(" ", x + 2, y + 7, colors.white, colour)
  47. end
  48.  
  49. function P(colour, x, y)
  50. mlapi.tp(" ", x + 8, y, colors.white, colour)
  51. mlapi.tp(" ", x + 8, y + 1, colors.white, colour)
  52. mlapi.tp(" ", x + 8, y + 2, colors.white, colour)
  53. mlapi.tp(" ", x + 12, y + 2, colors.white, colour)
  54. mlapi.tp(" ", x + 8, y + 3, colors.white, colour)
  55. mlapi.tp(" ", x + 8, y + 4, colors.white, colour)
  56. mlapi.tp(" ", x + 8, y + 5, colors.white, colour)
  57. mlapi.tp(" ", x + 8, y + 6, colors.white, colour)
  58. mlapi.tp(" ", x + 8, y + 7, colors.white, colour)
  59. end
  60.  
  61. function I(colour, x, y)
  62. mlapi.tp(" ", x + 24, y, colors.white, colour)
  63. mlapi.tp(" ", x + 24, y + 1, colors.white, colour)
  64. mlapi.tp(" ", x + 26, y + 2, colors.white, colour)
  65. mlapi.tp(" ", x + 26, y + 3, colors.white, colour)
  66. mlapi.tp(" ", x + 26, y + 4, colors.white, colour)
  67. mlapi.tp(" ", x + 26, y + 5, colors.white, colour)
  68. mlapi.tp(" ", x + 24, y + 6, colors.white, colour)
  69. mlapi.tp(" ", x + 24, y + 7, colors.white, colour)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment