summaryrefslogtreecommitdiff
path: root/render/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/color.c')
-rw-r--r--render/color.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/render/color.c b/render/color.c
index 46f81161..dfdd092c 100644
--- a/render/color.c
+++ b/render/color.c
@@ -242,3 +242,23 @@ void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
g_message("this image bit depth is currently unhandled\n");
}
}
+
+int RrColorRed(const RrColor *c)
+{
+ return c->r;
+}
+
+int RrColorGreen(const RrColor *c)
+{
+ return c->g;
+}
+
+int RrColorBlue(const RrColor *c)
+{
+ return c->b;
+}
+
+gulong RrColorPixel(const RrColor *c)
+{
+ return c->pixel;
+}