diff options
author | mathieui <mathieui@mathieui.net> | 2018-07-27 02:04:51 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-07-27 02:04:51 +0200 |
commit | 6be1a233e4f19fa5811a520fb17a9288c1d493b3 (patch) | |
tree | 4e028aebdae3c30272270827e715152dfd5cd737 | |
parent | 2fc660db78c35dc13fe8a116e51f7f978c6292e9 (diff) | |
download | poezio-6be1a233e4f19fa5811a520fb17a9288c1d493b3.tar.gz poezio-6be1a233e4f19fa5811a520fb17a9288c1d493b3.tar.bz2 poezio-6be1a233e4f19fa5811a520fb17a9288c1d493b3.tar.xz poezio-6be1a233e4f19fa5811a520fb17a9288c1d493b3.zip |
Fix RGB parsing in colors.py
Thanks nand for noticing
-rw-r--r-- | poezio/colors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/colors.py b/poezio/colors.py index 6a398a0d..2e90b9b0 100644 --- a/poezio/colors.py +++ b/poezio/colors.py @@ -19,11 +19,11 @@ def ncurses_color_to_rgb(color): b = b / 1000 * 5 elif color <= 231: color = color - 16 - r = color % 6 + b = color % 6 color = color // 6 g = color % 6 color = color // 6 - b = color % 6 + r = color % 6 else: color -= 232 r = g = b = color / 24 * 5 |