summaryrefslogtreecommitdiff
path: root/src/_color.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/_color.c')
-rw-r--r--src/_color.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/_color.c b/src/_color.c
index 2f3c7cf..7e9aa08 100644
--- a/src/_color.c
+++ b/src/_color.c
@@ -11,7 +11,24 @@ void setbgcolor(float r, float g, float b) {
_br = r;
_bg = g;
_bb = b;
- plog("%f %f %f", _br, _bg, _bb);
+}
+
+void getfgcolor(float *r, float *g, float *b) {
+ if (r)
+ *r = _fr;
+ if (g)
+ *g = _fg;
+ if (b)
+ *b = _fb;
+}
+
+void getbgcolor(float *r, float *g, float *b) {
+ if (r)
+ *r = _br;
+ if (g)
+ *g = _bg;
+ if (b)
+ *b = _bb;
}
void fgcolor() {