function letter = getLetter(xOffset, T, letter, value)

top = 45;
bot = 5;
left = xOffset+5;
right = xOffset+(20);
half = 25;
halfHor = xOffset+12.5;

letter = lower(letter);
if (letter == 'a')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(bot:top, right-1:right) = value;
    T(half:half+1, left:right) = value;
end
if (letter == 'b')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(bot:top, right-1:right) = value;
    T(half:half+1, left:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'c')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(top-10:top, right-1:right) = value;
    T(bot:bot+10, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'd')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(bot:top, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'e')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(half:half+1, left:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'f')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(half:half+1, left:right) = value;
end
if (letter == 'g')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(top-10:top, right-1:right) = value;
    T(bot:bot+10, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
    T(bot+9:bot+10, right-10:right) = value;
end
if (letter == 'h')
    T(bot:top, left:left+1) = value;
    T(bot:top, right-1:right) = value;
    T(half:half+1, left:right) = value;
end
if (letter == 'i') 
    T(top-1:top, left:right) = value;
    T(bot:top, halfHor:halfHor+1) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'j')
    T(top-1:top, left:right) = value;
    T(bot:top, halfHor:halfHor+1) = value;
    T(bot:bot+1, left:halfHor) = value;
    T(bot:bot+10, left:left+1) = value;
end
if (letter == 'k')
    T(bot:top, left:left+1) = value;
    vec = linspace(floor(half), top, (right-left));
    vec2 = linspace(bot, floor(half), (right-left));
    counter = 1;
    for (i = left:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        T(half-floor(vec2(counter))+5:half-floor(vec2(counter))+6, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'l')
    T(bot:top, left:left+1) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'm')
    T(bot:top, left:left+1) = value;
    T(bot:top, right-1:right+1) = value;
    vec = linspace(top,bot, (halfHor-left)*4);
    counter = 1;
    for (i = left:.25:halfHor-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end

    vec = linspace(bot, top, (right-halfHor)*4);
    counter = 1;
    for (i = halfHor:.25:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'n')
    T(bot:top, left:left+1) = value;
    T(bot:top, right-1:right) = value;
    vec = linspace(top, bot, (right-left)*2);
    counter = 1;
    for (i = left:.5:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter + 1;
    end
end
if (letter == 'o')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(bot:top, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'p')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(half:half+1, left:right) = value;
    T(half:top, right-1:right) = value;
end
if (letter == 'q')
    T(bot+5:top, left:left+1) = value;
    T(top-1:top, left:right-5) = value;
    T(bot+5:bot+6, left:right-5) = value;
    T(bot+5:top, right-6:right-5) = value;
    vec = linspace(bot+10, bot-5, 15);
    counter = 1;
    for (i=right-10:right)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'r')
    T(bot:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(half:top, right-1:right) = value;
    T(half:half+1, left:right) = value;
    vec = linspace(half, bot, ((right-left)*2));
    counter = 1;
    for (i = left:.5:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter +1;
    end
end
if (letter == 's')
    T(half:top, left:left+1) = value;
    T(top-1:top, left:right) = value;
    T(half:half+1, left:right) = value;
    T(bot:half, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 't')
    T(bot:top, halfHor:halfHor+1) = value;
    T(top-1:top, left:right) = value;
end
if (letter == 'u')
    T(bot:top, left:left+1) = value;
    T(bot:top, right-1:right) = value;
    T(bot:bot+1, left:right) = value;
end
if (letter == 'v')
    vec = linspace(top, bot, (halfHor-left)*4);
    counter = 1;
    for(i = left:.25:halfHor-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
    vec = linspace(bot, top, ((right-halfHor)*4)+1);
    counter = 1;
    for(i = halfHor:.25:right)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'w')
    T(bot:top, left:left+1) = value;
    T(bot:top, right-1:right) = value;
    vec = linspace(bot, half, (halfHor-left)*4);
    counter = 1;
    for (i = left:.25:halfHor-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
    vec = linspace(half, bot, (right-halfHor)*4);
    counter = 1;
    for (i = halfHor:.25:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'x')
    vec = linspace(top, bot, ((right-left)*4)+1);
    counter = 1;
    for (i = left:.25:right)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
    vec = linspace(bot, top, ((right-left)*4)+1);
    counter = 1;
    for (i = left:.25:right)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'y')
    T(bot:half, halfHor:halfHor+1) = value;
    vec = linspace(top, half, ((halfHor-left)*4)+1);
    counter = 1;
    for (i = left:.25:halfHor)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
    vec = linspace(half, top, ((right-halfHor)*4)+1);
    counter = 1;
    for(i = halfHor:.25:right)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
if (letter == 'z')
    T(top-1:top, left:right) = value;
    T(bot:bot+1, left:right) = value;
    vec = linspace(bot, top, ((right-left)*4));
    counter = 1;
    for (i = left:.25:right-1)
        T(floor(vec(counter)):floor(vec(counter))+1, i:i+1) = value;
        counter = counter+1;
    end
end
letter = T;