get("#178") -- PET font get("#179") -- base64 l = math.ceil(#pixels/8) t = {} for i=1, l do local b, x = 0, 128 for j=0, 7 do local p = pixels[i*8-7+j] if p ~= nil and p ~= 0 then b = b+x end x = x/2 end if i <= 8 then print(b) end table.insert(t, string.char(b)) end s = table.concat(t) print("string length: "..tostring(#s)) compressed = encode64(s) print("base64 length: "..tostring(#compressed)) code = "grab('#181') -- uncompressor\n" code = code.."width, height = "..tostring(width)..", "..tostring(height).."\n" code = code.."pixels = uncompress('"..compressed.."')" print(code)