syntax error
This commit is contained in:
parent
478a826390
commit
ae045c6082
|
@ -69,7 +69,7 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
|
|||
L = R * 299/1000 + G * 587/1000 + B * 114/1000
|
||||
index = int(L/range_width)
|
||||
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)
|
||||
char = prefix + char
|
||||
new_row += char
|
||||
|
|
Loading…
Reference in New Issue
Block a user