diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-06 21:25:40 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-10 17:57:20 -0800 |
commit | b59a22bef03b7b7922687cb4f1e6acb8a2709218 (patch) | |
tree | c25edd2ab59d36dbe243a3280555315bf380d4f8 /screen.h | |
parent | 9b1930588fc98b8fd0d8743692597e015aeff049 (diff) |
Colors
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -19,7 +19,18 @@ struct line_entry_t wchar_t text; int color; }; + +class rgb_color_t { + unsigned char rgb[3]; + public: + rgb_color_t(unsigned char r, unsigned char g, unsigned char b) + { + rgb[0] = r; + rgb[1] = g; + rgb[2] = b; + } +}; /** A class representing a single line of a screen. |