streach 1 pixel 2 tall, close enough lol
This commit is contained in:
parent
137d4532c0
commit
8a6c22f380
1 changed files with 2 additions and 2 deletions
|
@ -17,14 +17,14 @@ pixel_values = list(im.getdata())
|
|||
|
||||
ipix = width // ASCIIWIDTH # // instead of / to devide with a round number
|
||||
|
||||
asciiHeight = height // ipix
|
||||
asciiHeight = height // ipix // 2
|
||||
|
||||
for y in range(asciiHeight):
|
||||
line = []
|
||||
lastColor=69420
|
||||
|
||||
for x in range(ASCIIWIDTH):
|
||||
color = closestColor(pixel_values[width*(y*ipix)+(x*ipix)])
|
||||
color = closestColor(pixel_values[width*(y*(ipix*2))+(x*ipix)])
|
||||
if color == lastColor:
|
||||
colorcode = ''
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue