From d46a8ad54a3e3e1781913e58e325dd9b19cc4307 Mon Sep 17 00:00:00 2001 From: "Amine B. Hassouna" Date: Thu, 29 Nov 2018 21:05:31 +0100 Subject: [PATCH] Add colors : ORANGE, PINK and VIOLET --- include/utils.h | 3 +++ src/utils.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/utils.h b/include/utils.h index 772cb76..5c509fd 100644 --- a/include/utils.h +++ b/include/utils.h @@ -51,6 +51,9 @@ extern const SDL_Color COLOR_RED; extern const SDL_Color COLOR_GREEN; extern const SDL_Color COLOR_BLUE; extern const SDL_Color COLOR_YELLOW; +extern const SDL_Color COLOR_ORANGE; +extern const SDL_Color COLOR_PINK; +extern const SDL_Color COLOR_VIOLET; void Utils_setBackgroundColor(SDL_Renderer *renderer, SDL_Color color); diff --git a/src/utils.c b/src/utils.c index e45e6cc..44f3e23 100644 --- a/src/utils.c +++ b/src/utils.c @@ -43,6 +43,9 @@ const SDL_Color COLOR_RED = {255, 0, 0, 255}; const SDL_Color COLOR_GREEN = {0, 255, 0, 255}; const SDL_Color COLOR_BLUE = {0, 0, 255, 255}; const SDL_Color COLOR_YELLOW = {255, 255, 0, 255}; +const SDL_Color COLOR_ORANGE = {255, 133, 0, 255}; +const SDL_Color COLOR_PINK = {255, 0, 206, 255}; +const SDL_Color COLOR_VIOLET = {145, 0, 255, 255}; void Utils_setBackgroundColor(SDL_Renderer *renderer, SDL_Color color) {