ソースを参照

Changed test.png to multicolor image, changed code slightly

master
コミット
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 ファイルの表示


読み込み中…
キャンセル
保存