Add colors black, red, green and blue.

This commit is contained in:
KikooDX 2021-03-08 16:54:42 +01:00
parent bdb14fc3ee
commit 0303e689f7
2 changed files with 9 additions and 1 deletions

View File

@ -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`

View File

@ -8,9 +8,13 @@
#include <raylib.h>
/* 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