소스 검색

Changed test.png to multicolor image, changed code slightly

master
Noëlle Anthony 5 년 전
부모
커밋
814ab5efbc
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    4
      stitchify.py
  2. BIN
      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()

BIN
test.png 파일 보기


Loading…
취소
저장