From d362eb2cd36c04d6ce69e7a14c552de90e820400 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 23 Mar 2019 19:20:19 -0400 Subject: [PATCH] better ansi shading --- ASCII/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 8ca6742..045417f 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -329,9 +329,9 @@ class ASCII(callbacks.Plugin): else: cols = 80 if 'invert' in optlist: - gscale = "█▓▒░" + gscale = "██▓▒░" else: - gscale = "░▒▓█" + gscale = "░▒▓██" path = os.path.dirname(os.path.abspath(__file__)) filepath = "{0}/tmp".format(path) filename = "{0}/{1}".format(filepath, url.split('/')[-1]) @@ -390,7 +390,7 @@ class ASCII(callbacks.Plugin): # get average luminance avg = int(self.getAverageL(img)) # look up ascii char - gsval = gscale[int((avg*3)/255)] + gsval = gscale[int((avg*4)/255)] # get color value color = self.getAverageC(colormap[j][i].tolist(),speed) #color = self.getAverageC(img2,speed)