img: don't process color for space character

This commit is contained in:
Gordon Shumway 2019-05-21 04:54:17 -04:00 committed by GitHub
parent 8c30fd9c22
commit 51bc2d4e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ class ASCII(callbacks.Plugin):
# get color value
if 'nocolor' not in optlist:
color = self.getAverageC(colormap[j][i].tolist(),speed)
if color != old_color:
if color != old_color and gsval != ' ':
old_color = color
# append ascii char to string
if 'bg' not in optlist: