I'm sure I'm missing something obvious in how I've defined things, but this looks right to me, yet I get the above error. I have the following types defined:
typedef struct _ScreenColor
{
uint8_t Red;
uint8_t Green;
uint8_t Blue;
} ScreenColor;
typedef struct _Palette
{
ScreenColor Colors[4];
} Palette;
And then I am attempting to define an array of Palettes as follows:
Palette combos[3]=
{
{{255,255,255},{255, 10, 10},{ 10,255, 10},{ 10, 10,255}},
{{255,255,255},{255, 10, 10},{248,222, 0},{ 10, 10,255}},
{{255,255,255},{ 80, 40, 0},{ 20,200, 20},{255,100, 10}},
};
So each row should represent a Palette, which consists of 4 colors, and each color consists of 3 RGB bytes. Where did I go wrong?