img: --nocolor invert on white background

This commit is contained in:
Gordon Shumway 2019-05-21 02:40:40 -04:00 committed by GitHub
parent 9319565354
commit fef46428dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -530,6 +530,8 @@ class ASCII(callbacks.Plugin):
gscale = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:\"^`'."
if 'nocolor' in optlist and 'chars' in optlist:
return
elif 'nocolor' in optlist and bg == 0 or bg == 98:
gscale = "@%#*+=-:. "
elif 'nocolor' in optlist and 'invert' in optlist:
gscale = "@%#*+=-:. "
elif 'nocolor' in optlist and 'ramp' not in optlist: