Skip to content

Commit edf2565

Browse files
author
ProfOak
committed
removed prints, fixed spellings, general cleanup
1 parent 5542b07 commit edf2565

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*swp
22
*pyc
3+
test_imgs

ascii.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ def artify(self, words="#", step=3):
1515
MAX_W, MAX_H = self.from_pic.size
1616
h = w = i = 0
1717

18-
# skip pixels by `step` amout and place characters around image
18+
# skip pixels by `step` amount and place characters around image
1919
while h < MAX_H:
2020
while w < MAX_W:
21-
# use a string as characters as the art characters
21+
# use a string as the art characters
2222
c = words[i]
2323

2424
# loop around
2525
i = (i+1) % len(words)
26-
27-
draw.text((w, h), c, self.from_pic.getpixel((w, h)))
26+
p = self.from_pic.getpixel((w, h))
27+
draw.text((w, h), c, p)
2828
w += step
2929
h += step
3030
w = 0

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ def main():
2424

2525
if __name__ == "__main__":
2626
main()
27+

0 commit comments

Comments
 (0)