aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-06 21:25:40 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-10 17:57:20 -0800
commitb59a22bef03b7b7922687cb4f1e6acb8a2709218 (patch)
treec25edd2ab59d36dbe243a3280555315bf380d4f8 /screen.h
parent9b1930588fc98b8fd0d8743692597e015aeff049 (diff)
Colors
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/screen.h b/screen.h
index 4623f64e..3d6eb72d 100644
--- a/screen.h
+++ b/screen.h
@@ -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.