syntax error

This commit is contained in:
iou1name 2020-06-29 15:15:48 -04:00
parent 478a826390
commit ae045c6082

View File

@ -69,7 +69,7 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
L = R * 299/1000 + G * 587/1000 + B * 114/1000 L = R * 299/1000 + G * 587/1000 + B * 114/1000
index = int(L/range_width) index = int(L/range_width)
char = scales[scale][index] char = scales[scale][index]
if color_code and char is not " ": if color_code and char != " ":
prefix = color_prefix[color_code] + char_color(pixel,color_code) prefix = color_prefix[color_code] + char_color(pixel,color_code)
char = prefix + char char = prefix + char
new_row += char new_row += char