summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-28 13:52:06 +1000
committerquou <quou@disroot.org>2024-07-28 13:52:06 +1000
commit259e8e07ceb8f4729b9523ea08c4cd7ef2b4ad00 (patch)
tree264ffe56e06f83e4f07cb74a8d2a421a78dae275 /render.c
parent7d6d4d11b5e4da38b82cbad705539e64c83788cc (diff)
make_white and make_black
Diffstat (limited to 'render.c')
-rw-r--r--render.c8
1 files changed, 8 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;