浏览代码

Changed test.png to multicolor image, changed code slightly

master
Noëlle Anthony 5 年前
父节点
当前提交
814ab5efbc
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      stitchify.py
  2. 二进制
      test.png

+ 2
- 4
stitchify.py 查看文件

@@ -11,11 +11,9 @@ for i in range(h):
for j in range(w):
c = "".join(["{}{}".format(hex(x//16).split('x')[-1], hex(x%16).split('x')[-1]) for x in list(img.getpixel((j,i)))])
d = " "
if c in symbols.keys():
d = symbols[c]
else:
if c not in symbols.keys():
symbols[c] = characters[0]
characters = characters[1:]
d = symbols[c]
d = symbols[c]
print(d, end="")
print()

二进制
test.png 查看文件


正在加载...
取消
保存