maug
Quick and dirty C mini-augmentation library.
|
Color definitions RetroFlat is aware of, for use with the RetroFlat Drawing API. More...
Macros | |
#define | RETROFLAT_COLOR_TABLE(f) |
This macro defines all colors supported by RetroFlat for primative operations, particularly using retroflat_px(). | |
#define | RETROFLAT_COLOR_NULL (-1) |
#define | RETROFLAT_COLORS_SZ 16 |
#define | RETROFLAT_COLOR_BLACK 0 |
#define | RETROFLAT_COLOR_DARKBLUE 1 |
#define | RETROFLAT_COLOR_DARKGREEN 2 |
#define | RETROFLAT_COLOR_TEAL 3 |
#define | RETROFLAT_COLOR_DARKRED 4 |
#define | RETROFLAT_COLOR_VIOLET 5 |
#define | RETROFLAT_COLOR_BROWN 6 |
#define | RETROFLAT_COLOR_GRAY 7 |
#define | RETROFLAT_COLOR_DARKGRAY 8 |
#define | RETROFLAT_COLOR_BLUE 9 |
#define | RETROFLAT_COLOR_GREEN 10 |
#define | RETROFLAT_COLOR_CYAN 11 |
#define | RETROFLAT_COLOR_RED 12 |
#define | RETROFLAT_COLOR_MAGENTA 13 |
#define | RETROFLAT_COLOR_YELLOW 14 |
#define | RETROFLAT_COLOR_WHITE 15 |
Typedefs | |
typedef int8_t | RETROFLAT_COLOR |
Defines an index in the platform-specific color-table. | |
typedef int | RETROFLAT_COLOR_DEF |
Color definitions RetroFlat is aware of, for use with the RetroFlat Drawing API.
The precise type and values of these constants vary by platform.
#define RETROFLAT_COLOR_TABLE | ( | f | ) |
This macro defines all colors supported by RetroFlat for primative operations, particularly using retroflat_px().
The fields are: index, name (lowercase), name (uppercase), red, green, blue, cga on-color, cga off-color
On-color and off-color are used for dithering... odd pixels get one and even pixels get the other.