diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-08-29 14:05:22 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-08-29 14:05:22 +0200 |
commit | 567e0df2434b270411d3356b8e362fc881113335 (patch) | |
tree | 843da4160e3001bdd9f792d52a21f31c485f5215 /src/color.h | |
parent | 57b73d286ad68a71547cdfbb31c772fb46c96c67 (diff) | |
download | AsciiMap-567e0df2434b270411d3356b8e362fc881113335.tar.gz |
first working
Diffstat (limited to 'src/color.h')
-rw-r--r-- | src/color.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/color.h b/src/color.h index 70a8b16..a2f82d3 100644 --- a/src/color.h +++ b/src/color.h @@ -8,7 +8,9 @@ #include "m.h" -#define _COLORS_SIZE 16u +#define _COLORS_SIZE 16u +#define COLOR_FG 1 +#define COLOR_BG 2 struct console_color { @@ -28,7 +30,7 @@ uint8_t rgb_luminance(uint8_t R, uint8_t G, uint8_t B); //Get nearest printable color in console char *calc_col(uint8_t R, uint8_t G, uint8_t B); -char *calc_col_ansi(uint8_t R, uint8_t G, uint8_t B); +char *calc_col_ansi(uint8_t R, uint8_t G, uint8_t B, uint8_t _mode); char *calc_bg_col_ansi(uint8_t R, uint8_t G, uint8_t B); #endif //_COLOR_H_ |