To override or define a new set of colors follow this steps:
- Create a new color header file. The color values and data types will depend on the GFX_COLOR type used. This data type is defined by the COLOR_DEPTH macro. See COLOR_DEPTH for details.
- In the application code, include the created color header file ahead of the #include "Graphics/Graphics.h". When Graphics.h includes the gfxcolors.h it will ignore color macros that has been defined already in the new color header file.
#ifndef BLACK
#define BLACK 0
#endif
So if BLACK is defined previously, the definition in gfxcolors.h will not take effect.
Links