Ehm ok,
I'm not sure if I get this right.
What I would like is easily referable color sets for my code.
I'd like an effect function to accept a set of colors to work with.
This code seems to compile just fine:
struct color {
byte r;
byte g;
byte b;
};
color clrRed[] = {255, 0, 0};
color clrGreen[] = {0, 255, 0};
color clrBlue[] = {0, 0, 255};
int arrRGB[3] = {clrRed, clrGreen, clrBlue};
My next question would be how to access the values of R, G and B for elements (color) of arrRGB ?
arrRGB[0][1]
arrRGB[0].r
?
Thanks