You can have an array of struct
struct color {
byte r;
byte g;
byte b;
};
color all_colors[] = {{0,0,0}, {0, 1, 2}, {0,1,2}};
int color_size = sizeof(all_colors) / sizeof(all_colors[0]); //size of color
You can have an array of struct
struct color {
byte r;
byte g;
byte b;
};
color all_colors[] = {{0,0,0}, {0, 1, 2}, {0,1,2}};
int color_size = sizeof(all_colors) / sizeof(all_colors[0]); //size of color