From 916aced1bef07001ef4eee2a1cde6cd6e33b4bc3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 3 Jan 2014 00:10:20 +0100 Subject: Now with even more abstract art. --- host/matelight/color.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 host/matelight/color.h (limited to 'host/matelight/color.h') diff --git a/host/matelight/color.h b/host/matelight/color.h new file mode 100644 index 0000000..48f325b --- /dev/null +++ b/host/matelight/color.h @@ -0,0 +1,21 @@ +#ifndef __COLOR_H__ +#define __COLOR_H__ + +#include + +typedef struct { + uint8_t r; + uint8_t g; + uint8_t b; +} color_t; + +int xterm_color_index(color_t c); + +// gray +#define DEFAULT_FG_COLOR 7 +// black +#define DEFAULT_BG_COLOR 0 + +extern color_t colortable[256]; + +#endif//__COLOR_H__ -- cgit