diff options
author | quou <quou@disroot.org> | 2024-07-28 13:52:06 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-07-28 13:52:06 +1000 |
commit | 259e8e07ceb8f4729b9523ea08c4cd7ef2b4ad00 (patch) | |
tree | 264ffe56e06f83e4f07cb74a8d2a421a78dae275 | |
parent | 7d6d4d11b5e4da38b82cbad705539e64c83788cc (diff) |
make_white and make_black
-rw-r--r-- | render.c | 8 | ||||
-rw-r--r-- | render.h | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -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; @@ -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); |