Advertisement
pedrosgali

BigLetters

Dec 4th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.75 KB | None | 0 0
  1. m = peripheral.wrap("top") --Screen is 29:19
  2. m.setTextScale(0.5)
  3.  
  4. background = colors.black
  5. color = colors.lime
  6.  
  7. function box(stX, maX, stY, maY)
  8.     term.setBackgroundColor(color)
  9.     for i = stY, maY do
  10.         term.setCursorPos(stX, i)
  11.         for j = stX, maX do
  12.             write(" ")
  13.         end
  14.     end
  15. end
  16.  
  17. function drawChar(char)
  18.     if char == "A" then
  19.         box(8, 22, 4, 5)
  20.         box(5, 7, 6, 16)
  21.         box(8, 22, 9, 10)
  22.         box(23, 25, 6, 16)
  23.     elseif char == "B" then
  24.     elseif char == "C" then
  25.     elseif char == "D" then
  26.     elseif char == "E" then
  27.     elseif char == "F" then
  28.     elseif char == "G" then
  29.     elseif char == "H" then
  30.     elseif char == "I" then
  31.     elseif char == "J" then
  32.     elseif char == "K" then
  33.     elseif char == "L" then
  34.     elseif char == "M" then
  35.         box(5, 7, 4, 16)
  36.         box(8, 10, 7, 9)
  37.         box(11, 13, 10, 12)
  38.         box(14, 16, 13, 15)
  39.         box(17, 19, 10, 12)
  40.         box(20, 22. 7, 9)
  41.         box(23, 25, 4, 16)
  42.     elseif char == "N" then
  43.     elseif char == "O" then
  44.     elseif char == "P" then
  45.     elseif char == "Q" then
  46.     elseif char == "R" then
  47.     elseif char == "S" then
  48.         box(8, 25, 4, 5)
  49.         box(5, 7, 6, 8)
  50.         box(8, 22, 9, 10)
  51.         box(23, 25, 11, 14)
  52.         box(5, 22, 15, 16)
  53.     elseif char == "T" then
  54.     elseif char == "U" then
  55.         box(5, 7, 4, 14)
  56.         box(8, 22, 15, 16)
  57.         box(23, 25, 4, 14)
  58.     elseif char == "V" then
  59.     elseif char == "W" then
  60.     elseif char == "X" then
  61.     elseif char == "Y" then
  62.     elseif char == "Z" then
  63.     elseif char == "clear" then
  64.     end
  65. end
  66.  
  67. drawChar("M")
  68. sleep(1)
  69. m.clear()
  70. drawChar("A")
  71. sleep(1)
  72. m.clear()
  73. drawChar("U")
  74. sleep(1)
  75. m.clear()
  76. drawChar("S")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement