Fix RGB parsing in colors.py
Thanks nand for noticing
This commit is contained in:
parent
2fc660db78
commit
6be1a233e4
1 changed files with 2 additions and 2 deletions
|
@ -19,11 +19,11 @@ def ncurses_color_to_rgb(color):
|
||||||
b = b / 1000 * 5
|
b = b / 1000 * 5
|
||||||
elif color <= 231:
|
elif color <= 231:
|
||||||
color = color - 16
|
color = color - 16
|
||||||
r = color % 6
|
b = color % 6
|
||||||
color = color // 6
|
color = color // 6
|
||||||
g = color % 6
|
g = color % 6
|
||||||
color = color // 6
|
color = color // 6
|
||||||
b = color % 6
|
r = color % 6
|
||||||
else:
|
else:
|
||||||
color -= 232
|
color -= 232
|
||||||
r = g = b = color / 24 * 5
|
r = g = b = color / 24 * 5
|
||||||
|
|
Loading…
Reference in a new issue