get("#388") -- rect functions get("#348") -- rgb functions get("#380") -- imageHash get("#452") -- find java grid get("#430") -- makeIcon findGrid() tbl = {} c, clast = 0x20, 0x7E yy = sy for xx = sx, w-fw, fw do cropped = {width=fw, height=fh, getInt = function(x, y) return c == 0x20 and 0xFFFFFF or img.getInt(xx+x, yy+y) end} local data = makeIcon(cropped) local line = '{string.char('..c..'), "'..data..'"}' table.insert(tbl, line) c = c+1 if c > clast then goto raus end end ::raus:: return "characterReference = {\n"..table.concat(tbl, ",\n").."}"