From 8a6c22f380f039b211ebe5af33feac51625dcc68 Mon Sep 17 00:00:00 2001 From: xfnw Date: Fri, 18 Dec 2020 21:56:15 -0500 Subject: [PATCH] streach 1 pixel 2 tall, close enough lol --- banter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/banter.py b/banter.py index 8c26107..2dae349 100755 --- a/banter.py +++ b/banter.py @@ -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: