From 0303e689f7c49b2c5dab1a69684719cb08541808 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Mon, 8 Mar 2021 16:54:42 +0100 Subject: [PATCH] Add colors black, red, green and blue. --- README.md | 4 ++++ include/raygint/display.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index deb7597..a1f6651 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ desktop. Work in progress. Following are the supported define and functions. ## `raygint/display.h` Macros: +* `C_BLACK` +* `C_BLUE` +* `C_GREEN` +* `C_RED` * `C_WHITE` * `DWIDTH` * `DHEIGHT` diff --git a/include/raygint/display.h b/include/raygint/display.h index 6781020..d491842 100644 --- a/include/raygint/display.h +++ b/include/raygint/display.h @@ -8,9 +8,13 @@ #include /* Colors. */ #define C_WHITE WHITE +#define C_BLACK BLACK +#define C_RED RED +#define C_GREEN GREEN +#define C_BLUE BLUE /* Simple functions. */ #define dclear(c) ClearBackground(c) -#define drect(x, y, w, h, c) DrawRectangle(x, y, (x) - (w), (y) - (h), c) +#define drect(x1, y1, x2, y2, c) DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c) #endif /* RAYLIB */ #ifdef RAYLIB_CG