Add colors : ORANGE, PINK and VIOLET

This commit is contained in:
Amine B. Hassouna
2018-11-29 21:05:31 +01:00
parent 47866ff783
commit d46a8ad54a
2 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -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)
{