Small syntax fix
This commit is contained in:
parent
a82ff75260
commit
efbf9145c3
1 changed files with 4 additions and 2 deletions
|
|
@ -26,7 +26,8 @@ def termify_pixels(img):
|
|||
return '\033[49m'
|
||||
if color in bgd:
|
||||
return bgd[color]
|
||||
bgd[color] = '\033[48;5;'+str(formatter._closest_color(color))+'m'
|
||||
r,g,b,_ = color
|
||||
bgd[color] = '\033[48;5;'+str(formatter._closest_color(r,g,b))+'m'
|
||||
return bgd[color]
|
||||
|
||||
def fgescape(color):
|
||||
|
|
@ -34,7 +35,8 @@ def termify_pixels(img):
|
|||
if fg == color:
|
||||
return ''
|
||||
fg=color
|
||||
fgd[color] = '\033[38;5;'+str(formatter._closest_color(color))+'m'
|
||||
r,g,b,_ = color
|
||||
fgd[color] = '\033[38;5;'+str(formatter._closest_color(r,g,b))+'m'
|
||||
return fgd[color]
|
||||
|
||||
def balloon(x,y):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue