Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.62 KB | None | 0 0
  1. defaultColor = BrickColor.new(255, 255, 255)
  2. bgColor = BrickColor.new(0, 0, 0)
  3. screenWidth = 30
  4. screenHeight = 50
  5.  
  6.  
  7. _G["draw"] = function()
  8. --Put your drawing code here
  9. end
  10.  
  11.  
  12. function lerp(a, b, x)
  13.     if a == b then return a end
  14.     return a + x * (b - a)
  15. end
  16.  
  17. function round(num, idp)
  18.     local mult = 10^(idp or 0)
  19.     return math.floor(num * mult + 0.5) / mult
  20. end
  21.  
  22. function distance(x1, y1, x2, y2)
  23.     a = y2 - y1;
  24.     b = x2 - x1;
  25.     return math.sqrt(a * a + b * b)
  26. end
  27.  
  28. _G["drawLetter"] = function(x, y, letter, color)
  29.     local color = color or defaultColor
  30.     if font[letter] == nil then
  31.         letter_arr = font["space"]
  32.     elseif letter == "(" then
  33.         letter_arr = font["lparen"]
  34.     elseif letter == ")" then
  35.         letter_arr = font["rparen"]
  36.     elseif letter == "*" then
  37.         letter_arr = font["asterisk"]
  38.     elseif letter == "+" then
  39.         letter_arr = font["plus"]
  40.     elseif letter == "," then
  41.         letter_arr = font["comma"]
  42.     elseif letter == "-" then
  43.         letter_arr = font["dash"]
  44.     elseif letter == "." then
  45.         letter_arr = font["period"]
  46.     elseif letter == "/" then
  47.         letter_arr = font["slash"]
  48.     elseif letter == " " then
  49.         letter_arr = font["space"]
  50.     elseif letter == "!" then
  51.         letter_arr = font["exclamation"]
  52.     elseif letter == "\"" then
  53.         letter_arr = font["quote"]
  54.     elseif letter == "$" then
  55.         letter_arr = font["dollar"]
  56.     elseif letter == "'" then
  57.         letter_arr = font["apostrophe"]
  58.     elseif letter == "0" then
  59.         letter_arr = font["n0"]
  60.     elseif letter == "1" then
  61.         letter_arr = font["n1"]
  62.     elseif letter == "2" then
  63.         letter_arr = font["n2"]
  64.     elseif letter == "3" then
  65.         letter_arr = font["n3"]
  66.     elseif letter == "4" then
  67.         letter_arr = font["n4"]
  68.     elseif letter == "5" then
  69.         letter_arr = font["n5"]
  70.     elseif letter == "6" then
  71.         letter_arr = font["n6"]
  72.     elseif letter == "7" then
  73.         letter_arr = font["n7"]
  74.     elseif letter == "8" then
  75.         letter_arr = font["n8"]
  76.     elseif letter == "9" then
  77.         letter_arr = font["n9"]
  78.     elseif letter == ":" then
  79.         letter_arr = font["colon"]
  80.     elseif letter == ";" then
  81.         letter_arr = font["semi"]
  82.     elseif letter == "<" then
  83.         letter_arr = font["lessthan"]
  84.     elseif letter == "=" then
  85.         letter_arr = font["equals"]
  86.     elseif letter == ">" then
  87.         letter_arr = font["greaterthan"]
  88.     elseif letter == "?" then
  89.         letter_arr = font["question"]
  90.     elseif letter == "_" then
  91.         letter_arr = font["underscore"]
  92.     else
  93.         letter_arr = font[letter]
  94.     end
  95.     local i, v, i2, v2
  96.     for i, v in ipairs(letter_arr) do
  97.         for i2, v2 in ipairs(letter_arr[i]) do
  98.             local myX = x + i2
  99.             local myY = y+ i
  100.             if v2 == 1 then
  101.                 setPixel(myX, myY, color)
  102.             end
  103.         end
  104.     end
  105. end
  106.  
  107. _G["drawText"] = function(x, y, text, color)
  108.     local text = string.upper(text)
  109.     local color = color or defaultColor
  110.     local i = 0
  111.     for i = 0, string.len(text) do
  112.         letter = string.sub(text, i + 1, i + 1)
  113.         drawLetter(x + (6*i), y, letter, color)
  114.     end
  115. end
  116.  
  117. _G["drawCircle"] = function(x, y, radius, color)
  118.     local color = color or defaultColor
  119.     local draw_x, draw_y
  120.     local sqRadius = radius * radius
  121.     for draw_x=-radius, radius do
  122.         for draw_y=-radius, radius do
  123.             if draw_x^2 + draw_y^2 <= sqRadius and x + draw_x > 0 then
  124.                 setPixel(x + draw_x, y + draw_y, color)
  125.             end
  126.         end
  127.     end
  128. end
  129.  
  130. _G["filledRect"] = function(x1, y1, x2, y2, color)
  131.     local color = color or defaultColor
  132.     local drawX, drawY
  133.     for drawX = x1, x2 do
  134.         for drawY = y1, y2 do
  135.             setPixel(drawX, drawY, color)
  136.         end
  137.     end
  138. end
  139.  
  140. _G["drawLine"] = function(x1, y1, x2, y2, color)
  141.     local color = color or defaultColor
  142.     local drawX = 0
  143.     local drawY = 0
  144.     local d = round(distance(x1, y1, x2, y2))
  145.     for i=0, d do
  146.         drawX = round(lerp(x1, x2, i/d))
  147.         drawY = round(lerp(y1, y2, i/d))
  148.         setPixel(drawX, drawY, color)
  149.     end
  150. end
  151.  
  152. _G["outlineRect"] = function(x1, y1, x2, y2, color)
  153.     local color = color or defaultColor
  154.     drawLine(x1, y1, x1, y2, color)
  155.     drawLine(x1, y1, x2, y1, color)
  156.     drawLine(x1, y2, x2, y2, color)
  157.     drawLine(x2, y1, x2, y2, color)
  158. end
  159.  
  160. _G["fill"] = function(color)
  161.     local color = color or bgColor
  162.     local pixels = game.Workspace.LEDScreen:getChildren()
  163.     local p = 0
  164.     for c = 1, #pixels do
  165.             pixels[c].BrickColor = color
  166.     end
  167. end
  168.  
  169. _G["invert"] = function()
  170.     local pixels = game.Workspace.LEDScreen:getChildren()
  171.     local color
  172.     for c = 1, #pixels do
  173.         local curColor = pixels[c].BrickColor
  174.         if curColor == defaultColor then
  175.             color = bgColor
  176.         else
  177.             color = defaultColor
  178.         end
  179.         pixels[c].BrickColor = color
  180.     end
  181. end
  182.  
  183. _G["setPixel"] = function(x, y, color)
  184.     local s = game.Workspace.LEDScreen
  185.     local p = s:FindFirstChild(x.." "..y)
  186.     if p ~= nil then
  187.         p.BrickColor = color
  188.     end
  189. end
  190.  
  191. _G["generateScreen"] = function(start, width, height)
  192.     local part = Instance.new("Part")
  193.     part.formFactor = "Symmetric"
  194.     part.Size = Vector3.new(1, 1, 1)
  195.     part.Anchored = true
  196.     part.BrickColor = bgColor
  197.     local height2 = height/2
  198.     local width2 = width/2
  199.     for x2 = width2, 0, -0.5 do
  200.         for y2 = height2, 0, -0.5 do
  201.             local newPart = part:Clone()
  202.             local mesh = Instance.new("BlockMesh")
  203.             mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  204.             mesh.Parent = newPart
  205.             local pos = Vector3.new(start.x - x2, start.y - y2, start.z)
  206.             newPart.CFrame = CFrame.new(pos)
  207.             newPart.Parent = game.Workspace.LEDScreen
  208.             newPart.Name = (x2 * 2).." "..(y2 * 2)
  209.         end
  210.     end
  211.     setPixel(2, 2, BrickColor.Yellow())
  212. end
  213.  
  214. font =
  215. {
  216.     lparen = {
  217.         {0, 0, 0, 1, 0},
  218.         {0, 0, 1, 0, 0},
  219.         {0, 1, 0, 0, 0},
  220.         {0, 1, 0, 0, 0},
  221.         {0, 1, 0, 0, 0},
  222.         {0, 0, 1, 0, 0},
  223.         {0, 0, 0, 1, 0},
  224.     },
  225.     rparen = {
  226.         {0, 1, 0, 0, 0},
  227.         {0, 0, 1, 0, 0},
  228.         {0, 0, 0, 1, 0},
  229.         {0, 0, 0, 1, 0},
  230.         {0, 0, 0, 1, 0},
  231.         {0, 0, 1, 0, 0},
  232.         {0, 1, 0, 0, 0},
  233.     },
  234.     asterisk = {
  235.         {0, 0, 0, 0, 0},
  236.         {0, 0, 1, 0, 0},
  237.         {1, 0, 1, 0, 1},
  238.         {0, 1, 1, 1, 0},
  239.         {1, 0, 1, 0, 1},
  240.         {0, 0, 1, 0, 0},
  241.         {0, 0, 0, 0, 0},
  242.     },
  243.     plus = {
  244.         {0, 0, 0, 0, 0},
  245.         {0, 0, 1, 0, 0},
  246.         {0, 0, 1, 0, 0},
  247.         {1, 1, 1, 1, 1},
  248.         {0, 0, 1, 0, 0},
  249.         {0, 0, 1, 0, 0},
  250.         {0, 0, 0, 0, 0},
  251.     },
  252.     comma = {
  253.         {0, 0, 0, 0, 0},
  254.         {0, 0, 0, 0, 0},
  255.         {0, 0, 0, 0, 0},
  256.         {0, 0, 0, 0, 0},
  257.         {0, 1, 1, 0, 0},
  258.         {0, 0, 1, 0, 0},
  259.         {0, 1, 0, 0, 0},
  260.     },
  261.     dash = {
  262.         {0, 0, 0, 0, 0},
  263.         {0, 0, 0, 0, 0},
  264.         {0, 0, 0, 0, 0},
  265.         {1, 1, 1, 1, 1},
  266.         {0, 0, 0, 0, 0},
  267.         {0, 0, 0, 0, 0},
  268.         {0, 0, 0, 0, 0},
  269.     },
  270.     period = {
  271.         {0, 0, 0, 0, 0},
  272.         {0, 0, 0, 0, 0},
  273.         {0, 0, 0, 0, 0},
  274.         {0, 0, 0, 0, 0},
  275.         {0, 0, 0, 0, 0},
  276.         {0, 1, 1, 0, 0},
  277.         {0, 1, 1, 0, 0},
  278.     },
  279.     slash = {
  280.         {0, 0, 0, 0, 0},
  281.         {0, 0, 0, 0, 1},
  282.         {0, 0, 0, 1, 0},
  283.         {0, 0, 1, 0, 0},
  284.         {0, 1, 0, 0, 0},
  285.         {1, 0, 0, 0, 0},
  286.         {0, 0, 0, 0, 0},
  287.     },
  288.     space = {
  289.         {0, 0, 0, 0, 0},
  290.         {0, 0, 0, 0, 0},
  291.         {0, 0, 0, 0, 0},
  292.         {0, 0, 0, 0, 0},
  293.         {0, 0, 0, 0, 0},
  294.         {0, 0, 0, 0, 0},
  295.         {0, 0, 0, 0, 0},
  296.     },
  297.     exclamation = {
  298.         {0, 0, 1, 0, 0},
  299.         {0, 0, 1, 0, 0},
  300.         {0, 0, 1, 0, 0},
  301.         {0, 0, 1, 0, 0},
  302.         {0, 0, 0, 0, 0},
  303.         {0, 0, 0, 0, 0},
  304.         {0, 0, 1, 0, 0},
  305.     },
  306.     quote = {
  307.         {0, 1, 0, 1, 0},
  308.         {0, 1, 0, 1, 0},
  309.         {0, 1, 0, 1, 0},
  310.         {0, 0, 0, 0, 0},
  311.         {0, 0, 0, 0, 0},
  312.         {0, 0, 0, 0, 0},
  313.         {0, 0, 0, 0, 0},
  314.     },
  315.     dollar = {
  316.         {0, 0, 1, 0, 0},
  317.         {0, 1, 1, 1, 1},
  318.         {1, 0, 1, 0, 0},
  319.         {0, 1, 1, 1, 0},
  320.         {0, 0, 1, 0, 1},
  321.         {1, 1, 1, 1, 0},
  322.         {0, 0, 1, 0, 0},
  323.     },
  324.     apostrophe = {
  325.         {0, 1, 1, 0, 0},
  326.         {0, 0, 1, 0, 0},
  327.         {0, 1, 0, 0, 0},
  328.         {0, 0, 0, 0, 0},
  329.         {0, 0, 0, 0, 0},
  330.         {0, 0, 0, 0, 0},
  331.         {0, 0, 0, 0, 0},
  332.     },
  333.     n0 = {
  334.         {0, 1, 1, 1, 0},
  335.         {1, 0, 0, 0, 1},
  336.         {1, 0, 0, 1, 1},
  337.         {1, 0, 1, 0, 1},
  338.         {1, 1, 0, 0, 1},
  339.         {1, 0, 0, 0, 1},
  340.         {0, 1, 1, 1, 0},
  341.     },
  342.     n1 = {
  343.         {0, 0, 1, 0, 0},
  344.         {0, 1, 1, 0, 0},
  345.         {0, 0, 1, 0, 0},
  346.         {0, 0, 1, 0, 0},
  347.         {0, 0, 1, 0, 0},
  348.         {0, 0, 1, 0, 0},
  349.         {0, 1, 1, 1, 0},
  350.     },
  351.     n2 = {
  352.         {0, 1, 1, 1, 0},
  353.         {1, 0, 0, 0, 1},
  354.         {0, 0, 0, 0, 1},
  355.         {0, 0, 0, 1, 0},
  356.         {0, 0, 1, 0, 0},
  357.         {0, 1, 0, 0, 0},
  358.         {1, 1, 1, 1, 1},
  359.     },
  360.     n3 = {
  361.         {1, 1, 1, 1, 1},
  362.         {0, 0, 0, 1, 0},
  363.         {0, 0, 1, 0, 0},
  364.         {0, 0, 0, 1, 0},
  365.         {0, 0, 0, 0, 1},
  366.         {1, 0, 0, 0, 1},
  367.         {0, 1, 1, 1, 0},
  368.     },
  369.     n4 = {
  370.         {0, 0, 0, 1, 0},
  371.         {0, 0, 1, 1, 0},
  372.         {0, 1, 0, 1, 0},
  373.         {1, 0, 0, 1, 0},
  374.         {1, 1, 1, 1, 1},
  375.         {0, 0, 0, 1, 0},
  376.         {0, 0, 0, 1, 0},
  377.     },
  378.     n5 = {
  379.         {1, 1, 1, 1, 1},
  380.         {1, 0, 0, 0, 0},
  381.         {1, 1, 1, 1, 0},
  382.         {0, 0, 0, 0, 1},
  383.         {0, 0, 0, 0, 1},
  384.         {1, 0, 0, 0, 1},
  385.         {0, 1, 1, 1, 0},
  386.     },
  387.     n6 = {
  388.         {0, 0, 1, 1, 0},
  389.         {0, 1, 0, 0, 0},
  390.         {1, 0, 0, 0, 0},
  391.         {1, 1, 1, 1, 0},
  392.         {1, 0, 0, 0, 1},
  393.         {1, 0, 0, 0, 1},
  394.         {0, 1, 1, 1, 0},
  395.     },
  396.     n7 = {
  397.         {1, 1, 1, 1, 1},
  398.         {0, 0, 0, 0, 1},
  399.         {0, 0, 0, 1, 0},
  400.         {0, 0, 1, 0, 0},
  401.         {0, 1, 0, 0, 0},
  402.         {0, 1, 0, 0, 0},
  403.         {0, 1, 0, 0, 0},
  404.     },
  405.     n8 = {
  406.         {0, 1, 1, 1, 0},
  407.         {1, 0, 0, 0, 1},
  408.         {1, 0, 0, 0, 1},
  409.         {0, 1, 1, 1, 0},
  410.         {1, 0, 0, 0, 1},
  411.         {1, 0, 0, 0, 1},
  412.         {0, 1, 1, 1, 0},
  413.     },
  414.     n9 = {
  415.         {0, 1, 1, 1, 0},
  416.         {1, 0, 0, 0, 1},
  417.         {1, 0, 0, 0, 1},
  418.         {0, 1, 1, 1, 1},
  419.         {0, 0, 0, 0, 1},
  420.         {0, 0, 0, 1, 0},
  421.         {0, 1, 1, 0, 0},
  422.     },
  423.     colon = {
  424.         {0, 0, 0, 0, 0},
  425.         {0, 1, 1, 0, 0},
  426.         {0, 1, 1, 0, 0},
  427.         {0, 0, 0, 0, 0},
  428.         {0, 1, 1, 0, 0},
  429.         {0, 1, 1, 0, 0},
  430.         {0, 0, 0, 0, 0},
  431.     },
  432.     semi = {
  433.         {0, 0, 0, 0, 0},
  434.         {0, 1, 1, 0, 0},
  435.         {0, 1, 1, 0, 0},
  436.         {0, 0, 0, 0, 0},
  437.         {0, 1, 1, 0, 0},
  438.         {0, 0, 1, 0, 0},
  439.         {0, 1, 0, 0, 0},
  440.     },
  441.     lessthan = {
  442.         {0, 0, 0, 1, 0},
  443.         {0, 0, 1, 0, 0},
  444.         {0, 1, 0, 0, 0},
  445.         {1, 0, 0, 0, 0},
  446.         {0, 1, 0, 0, 0},
  447.         {0, 0, 1, 0, 0},
  448.         {0, 0, 0, 1, 0},
  449.     },
  450.     equals = {
  451.         {0, 0, 0, 0, 0},
  452.         {0, 0, 0, 0, 0},
  453.         {1, 1, 1, 1, 1},
  454.         {0, 0, 0, 0, 0},
  455.         {1, 1, 1, 1, 1},
  456.         {0, 0, 0, 0, 0},
  457.         {0, 0, 0, 0, 0},
  458.     },
  459.     greaterthan = {
  460.         {0, 1, 0, 0, 0},
  461.         {0, 0, 1, 0, 0},
  462.         {0, 0, 0, 1, 0},
  463.         {0, 0, 0, 0, 1},
  464.         {0, 0, 0, 1, 0},
  465.         {0, 0, 1, 0, 0},
  466.         {0, 1, 0, 0, 0},
  467.     },
  468.     question = {
  469.         {0, 1, 1, 1, 0},
  470.         {1, 0, 0, 0, 1},
  471.         {0, 0, 0, 0, 1},
  472.         {0, 0, 0, 1, 0},
  473.         {0, 0, 1, 0, 0},
  474.         {0, 0, 0, 0, 0},
  475.         {0, 0, 1, 0, 0},
  476.     },
  477.     A = {
  478.         {0, 1, 1, 1, 0},
  479.         {1, 0, 0, 0, 1},
  480.         {1, 0, 0, 0, 1},
  481.         {1, 0, 0, 0, 1},
  482.         {1, 1, 1, 1, 1},
  483.         {1, 0, 0, 0, 1},
  484.         {1, 0, 0, 0, 1},
  485.     },
  486.     B = {
  487.         {1, 1, 1, 1, 0},
  488.         {1, 0, 0, 0, 1},
  489.         {1, 0, 0, 0, 1},
  490.         {1, 1, 1, 1, 0},
  491.         {1, 0, 0, 0, 1},
  492.         {1, 0, 0, 0, 1},
  493.         {1, 1, 1, 1, 0},
  494.     },
  495.     C = {
  496.         {0, 1, 1, 1, 0},
  497.         {1, 0, 0, 0, 1},
  498.         {1, 0, 0, 0, 0},
  499.         {1, 0, 0, 0, 0},
  500.         {1, 0, 0, 0, 0},
  501.         {1, 0, 0, 0, 1},
  502.         {0, 1, 1, 1, 0},
  503.     },
  504.     D = {
  505.         {1, 1, 1, 0, 0},
  506.         {1, 0, 0, 1, 0},
  507.         {1, 0, 0, 0, 1},
  508.         {1, 0, 0, 0, 1},
  509.         {1, 0, 0, 0, 1},
  510.         {1, 0, 0, 1, 0},
  511.         {1, 1, 1, 0, 0},
  512.     },
  513.     E = {
  514.         {1, 1, 1, 1, 1},
  515.         {1, 0, 0, 0, 0},
  516.         {1, 0, 0, 0, 0},
  517.         {1, 1, 1, 1, 0},
  518.         {1, 0, 0, 0, 0},
  519.         {1, 0, 0, 0, 0},
  520.         {1, 1, 1, 1, 1},
  521.     },
  522.     F = {
  523.         {1, 1, 1, 1, 1},
  524.         {1, 0, 0, 0, 0},
  525.         {1, 0, 0, 0, 0},
  526.         {1, 1, 1, 1, 0},
  527.         {1, 0, 0, 0, 0},
  528.         {1, 0, 0, 0, 0},
  529.         {1, 0, 0, 0, 0},
  530.     },
  531.     G = {
  532.         {0, 1, 1, 1, 0},
  533.         {1, 0, 0, 0, 1},
  534.         {1, 0, 0, 0, 0},
  535.         {1, 0, 1, 1, 1},
  536.         {1, 0, 0, 0, 1},
  537.         {1, 0, 0, 0, 1},
  538.         {0, 1, 1, 1, 1},
  539.     },
  540.     H = {
  541.         {1, 0, 0, 0, 1},
  542.         {1, 0, 0, 0, 1},
  543.         {1, 0, 0, 0, 1},
  544.         {1, 1, 1, 1, 1},
  545.         {1, 0, 0, 0, 1},
  546.         {1, 0, 0, 0, 1},
  547.         {1, 0, 0, 0, 1},
  548.     },
  549.     I = {
  550.         {0, 1, 1, 1, 0},
  551.         {0, 0, 1, 0, 0},
  552.         {0, 0, 1, 0, 0},
  553.         {0, 0, 1, 0, 0},
  554.         {0, 0, 1, 0, 0},
  555.         {0, 0, 1, 0, 0},
  556.         {0, 1, 1, 1, 0},
  557.     },
  558.     J = {
  559.         {0, 0, 1, 1, 1},
  560.         {0, 0, 0, 1, 0},
  561.         {0, 0, 0, 1, 0},
  562.         {0, 0, 0, 1, 0},
  563.         {0, 0, 0, 1, 0},
  564.         {1, 0, 0, 1, 0},
  565.         {0, 1, 1, 0, 0},
  566.     },
  567.     K = {
  568.         {1, 0, 0, 0, 1},
  569.         {1, 0, 0, 1, 0},
  570.         {1, 0, 1, 0, 0},
  571.         {1, 1, 0, 0, 0},
  572.         {1, 0, 1, 0, 0},
  573.         {1, 0, 0, 1, 0},
  574.         {1, 0, 0, 0, 1},
  575.     },
  576.     L = {
  577.         {1, 0, 0, 0, 0},
  578.         {1, 0, 0, 0, 0},
  579.         {1, 0, 0, 0, 0},
  580.         {1, 0, 0, 0, 0},
  581.         {1, 0, 0, 0, 0},
  582.         {1, 0, 0, 0, 0},
  583.         {1, 1, 1, 1, 1},
  584.     },
  585.     M = {
  586.         {1, 0, 0, 0, 1},
  587.         {1, 1, 0, 1, 1},
  588.         {1, 0, 1, 0, 1},
  589.         {1, 0, 1, 0, 1},
  590.         {1, 0, 0, 0, 1},
  591.         {1, 0, 0, 0, 1},
  592.         {1, 0, 0, 0, 1},
  593.     },
  594.     N = {
  595.         {1, 0, 0, 0, 1},
  596.         {1, 0, 0, 0, 1},
  597.         {1, 1, 0, 0, 1},
  598.         {1, 0, 1, 0, 1},
  599.         {1, 0, 0, 1, 1},
  600.         {1, 0, 0, 0, 1},
  601.         {1, 0, 0, 0, 1},
  602.     },
  603.     O = {
  604.         {0, 1, 1, 1, 0},
  605.         {1, 0, 0, 0, 1},
  606.         {1, 0, 0, 0, 1},
  607.         {1, 0, 0, 0, 1},
  608.         {1, 0, 0, 0, 1},
  609.         {1, 0, 0, 0, 1},
  610.         {0, 1, 1, 1, 0},
  611.     },
  612.     P = {
  613.         {1, 1, 1, 1, 0},
  614.         {1, 0, 0, 0, 1},
  615.         {1, 0, 0, 0, 1},
  616.         {1, 1, 1, 1, 0},
  617.         {1, 0, 0, 0, 0},
  618.         {1, 0, 0, 0, 0},
  619.         {1, 0, 0, 0, 0},
  620.     },
  621.     Q = {
  622.         {0, 1, 1, 1, 0},
  623.         {1, 0, 0, 0, 1},
  624.         {1, 0, 0, 0, 1},
  625.         {1, 0, 0, 0, 1},
  626.         {1, 0, 1, 0, 1},
  627.         {1, 0, 0, 1, 0},
  628.         {0, 1, 1, 0, 1},
  629.     },
  630.     R = {
  631.         {1, 1, 1, 1, 0},
  632.         {1, 0, 0, 0, 1},
  633.         {1, 0, 0, 0, 1},
  634.         {1, 1, 1, 1, 0},
  635.         {1, 0, 1, 0, 0},
  636.         {1, 0, 0, 1, 0},
  637.         {1, 0, 0, 0, 1},
  638.     },
  639.     S = {
  640.         {0, 1, 1, 1, 1},
  641.         {1, 0, 0, 0, 0},
  642.         {1, 0, 0, 0, 0},
  643.         {0, 1, 1, 1, 0},
  644.         {0, 0, 0, 0, 1},
  645.         {0, 0, 0, 0, 1},
  646.         {1, 1, 1, 1, 0},
  647.     },
  648.     T = {
  649.         {1, 1, 1, 1, 1},
  650.         {0, 0, 1, 0, 0},
  651.         {0, 0, 1, 0, 0},
  652.         {0, 0, 1, 0, 0},
  653.         {0, 0, 1, 0, 0},
  654.         {0, 0, 1, 0, 0},
  655.         {0, 0, 1, 0, 0},
  656.     },
  657.     U = {
  658.         {1, 0, 0, 0, 1},
  659.         {1, 0, 0, 0, 1},
  660.         {1, 0, 0, 0, 1},
  661.         {1, 0, 0, 0, 1},
  662.         {1, 0, 0, 0, 1},
  663.         {1, 0, 0, 0, 1},
  664.         {0, 1, 1, 1, 0},
  665.     },
  666.     W = {
  667.         {1, 0, 0, 0, 1},
  668.         {1, 0, 0, 0, 1},
  669.         {1, 0, 0, 0, 1},
  670.         {1, 0, 1, 0, 1},
  671.         {1, 0, 1, 0, 1},
  672.         {1, 0, 1, 0, 1},
  673.         {0, 1, 0, 1, 1},
  674.     },
  675.     X = {
  676.         {1, 0, 0, 0, 1},
  677.         {1, 0, 0, 0, 1},
  678.         {0, 1, 0, 1, 0},
  679.         {0, 0, 1, 0, 0},
  680.         {0, 1, 0, 1, 0},
  681.         {1, 0, 0, 0, 1},
  682.         {1, 0, 0, 0, 1},
  683.     },
  684.     Y = {
  685.         {1, 0, 0, 0, 1},
  686.         {1, 0, 0, 0, 1},
  687.         {1, 0, 0, 0, 1},
  688.         {0, 1, 0, 1, 1},
  689.         {0, 0, 1, 0, 0},
  690.         {0, 0, 1, 0, 0},
  691.         {0, 0, 1, 0, 0},
  692.     },
  693.     Z = {
  694.         {1, 1, 1, 1, 1},
  695.         {0, 0, 0, 0, 1},
  696.         {0, 0, 0, 1, 0},
  697.         {0, 0, 1, 0, 0},
  698.         {0, 1, 0, 0, 0},
  699.         {1, 0, 0, 0, 0},
  700.         {1, 1, 1, 1, 1},
  701.     },
  702.     underscore = {
  703.         {0, 0, 0, 0, 0},
  704.         {0, 0, 0, 0, 0},
  705.         {0, 0, 0, 0, 0},
  706.         {0, 0, 0, 0, 0},
  707.         {0, 0, 0, 0, 0},
  708.         {0, 0, 0, 0, 0},
  709.         {1, 1, 1, 1, 1},
  710.     }
  711. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement