diff options
Diffstat (limited to 'src/screen.h')
| -rw-r--r-- | src/screen.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/screen.h b/src/screen.h index a4ecf5a..78e2077 100644 --- a/src/screen.h +++ b/src/screen.h | |||
| @@ -26,19 +26,30 @@ enum custom_colors { | |||
| 26 | CURSES_CYAN = COLOR_CYAN, // ncurses' default cyan | 26 | CURSES_CYAN = COLOR_CYAN, // ncurses' default cyan |
| 27 | CURSES_WHITE = COLOR_WHITE, // ncurses' default white | 27 | CURSES_WHITE = COLOR_WHITE, // ncurses' default white |
| 28 | 28 | ||
| 29 | CC_RED, | 29 | /* Start custom color definitions */ |
| 30 | CC_ORANGE, | 30 | |
| 31 | CC_YELLOW, | 31 | CC_RED, // RGB: 255, 0, 0 |
| 32 | CC_GREEN, | 32 | CC_ORANGE, // RGB: 255, 128, 0 |
| 33 | CC_BLUE, | 33 | CC_YELLOW, // RGB: 255, 255, 0 |
| 34 | CC_PURPLE, | 34 | CC_GREEN, // RGB: 0, 255, 0 |
| 35 | CC_MAGENTA, | 35 | CC_BLUE, // RGB: 0, 0, 255 |
| 36 | CC_WHITE, | 36 | CC_PURPLE, // RGB: 155, 0, 255 |
| 37 | CC_MAGENTA, // RGB: 255, 0, 255 | ||
| 38 | CC_WHITE, // RGB: 255, 255, 255 | ||
| 37 | 39 | ||
| 38 | // This isn't actually a color, even if you try to use it as one | 40 | // This isn't actually a color, even if you try to use it as one |
| 39 | CC_TOOBIG | 41 | CC_TOOBIG |
| 40 | }; | 42 | }; |
| 41 | 43 | ||
| 44 | enum customcolor_pairs { | ||
| 45 | CCP_UNDEFINED, | ||
| 46 | |||
| 47 | CCP_BANNER, | ||
| 48 | CCP_TESTING, | ||
| 49 | |||
| 50 | CCP_TOOBIG | ||
| 51 | }; | ||
| 52 | |||
| 42 | // Converts value from within the range of [oldmin, oldmax] to a value within the range [newmin, newmax] | 53 | // Converts value from within the range of [oldmin, oldmax] to a value within the range [newmin, newmax] |
| 43 | static float normalize(float value, float oldmin, float oldmax, float newmin, float newmax); | 54 | static float normalize(float value, float oldmin, float oldmax, float newmin, float newmax); |
| 44 | 55 | ||
