summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.c8
-rw-r--r--render.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/render.c b/render.c
index 9eb3af0..86e61f7 100644
--- a/render.c
+++ b/render.c
@@ -120,6 +120,14 @@ Colour make_aliceblue(void) {
return make_colour(0xf0f8ff, 0xff);
}
+Colour make_white(void) {
+ return make_colour(0xffffff, 0xff);
+}
+
+Colour make_black(void) {
+ return make_colour(0x000000, 0xff);
+}
+
Colour blend(Colour dst, Colour src) {
int ima;
ima = 0xff - src.a;
diff --git a/render.h b/render.h
index b420c20..6c085cb 100644
--- a/render.h
+++ b/render.h
@@ -17,6 +17,8 @@ Colour make_cyan(void);
Colour make_pink(void);
Colour make_yellow(void);
Colour make_aliceblue(void);
+Colour make_white(void);
+Colour make_black(void);
Colour blend(Colour dst, Colour src);
Colour blend_mod(Colour dst, Colour src, Colour mod);
Colour col_mul(Colour a, Colour b);