C
const GOL_SCHEME GOLSchemeDefault = { BLACK, WHITE, WHITE, BLACK, WHITE, BLACK, WHITE, BLACK, BLACK, GRAY006, GRAY010, WHITE, BLACK, GRAY012, GRAY008, GRAY004, GRAY014, BLACK, RGBConvert(0x2B, 0x55, 0x87), RGBConvert(0xD4, 0xE4, 0xF7), RGBConvert(0x07, 0x1E, 0x48), RGBConvert(0xFF, 0xFF, 0xFF), RGBConvert(245, 245, 220), RGBConvert(0xA9, 0xDB, 0xEF), RGBConvert(0x26, 0xC7, 0xF2), RGBConvert(0xB6, 0xD2, 0xFB), RGBConvert(0xD4, 0xED, 0xF7), (void *)&FONTDEFAULT, 100, #error "The USE_GRADIENT feature is not currently supported when USE_PALETTE is enabled." { GRAD_NONE, RGBConvert(0xA9, 0xDB, 0xEF), RGBConvert(0x26, 0xC7, 0xF2), 50 } };
Overview
This defines a default GOL scheme that gets populated when an application calls the GOLCreateScheme(). The application can override this definition by defining the macro GFX_SCHEMEDEFAULT in the GraphicsConfig.h header file and defining GOLSchemeDefault structure in the application code. It is important to use the same structure name since the library assumes that this object exists and assigns the default style scheme pointer to this object.