textBlocks = { { " ", " ", " .. ", ". . ", " .. .", }, { "... ", ". .", "... ", ". .", "... ", }, { " ... ", ". .", ". ", ". .", " ... ", }, { "... ", ". .", ". .", ". .", "... ", }, { "....", ". ", "... ", ". ", "....", }, { "....", ". ", "... ", ". ", ". ", }, { " ....", ". ", ". ..", ". .", " ... ", }, { ". .", ". .", "....", ". .", ". .", }, { " ", ".", " ", ".", ".", }, { ".....", " . ", " . ", ". . ", " .. ", }, { ". .", ". . ", ".. ", ". . ", ". .", }, { ". ", ". ", ". ", ". ", "....", }, { ". .", ".. ..", ". . .", ". .", ". .", }, { ". .", ".. .", ". . .", ". ..", ". .", }, { " ", " ", " .. ", ". .", " .. ", }, { ".... ", ". .", ".... ", ". ", ". ", }, { " ... ", ". .", ". . .", ". . ", " .. .", }, { ".... ", ". .", "... ", ". ..", ". .", }, { " ....", ". ", " ... ", " .", ".... ", }, { ".....", " . ", " . ", " . ", " . ", }, { ". .", ". .", ". .", ". .", " ... ", }, { ". .", ". .", " . . ", " . . ", " . ", }, { ". .", ". .", ". . .", ".. ..", ". .", }, { ". .", " . . ", " . ", " . . ", ". .", }, { ". .", " . . ", " . ", " . ", " . ", }, { ".....", " . ", " . ", " . ", ".....", }, { " ", " ", " ", " ", " ", }, { ".", ".", ".", " ", ".", }, } local colNum=0 local x=1 local y=1 function drawRow(inrow) colNum = string.len(inrow) x = 1 print("starting on "..x..","..y..":"..inrow) while x <= colNum do slot=string.sub(inrow,x,x) if slot == "." then turtle.placeDown() end turtle.forward() x=x+1 end while x > 1 do turtle.back() x = x -1 end return colNum end function drawLetter(letter) for i=5,1,-1 do drawRow(letter[i]) print("Done with row") turtle.up() y = y + 1 end for x = 1,colNum+1 do turtle.forward() end while y > 1 do turtle.down() y = y - 1 end end function drawText(text) for a=1,string.len(text) do val =string.byte(text,a) if val == 32 then val=27 elseif val >= 65 and val <= 90 then val = val - 64 elseif val >= 97 and val <= 122 then val = val - 96 elseif val == string.byte("!") then val=28 else val=27 end drawLetter(textBlocks[val]) end end write("(kleebco) enter sjipsign text:") text = read() drawText(text)