/* TODO user-selectable colours */
static const char * const colours[][3] = {
/*primary bottom top */
- "#fa2e2e", "#c02323", "#ff3939", /* red */
- "#ff8c00", "#c46c00", "#ffa400", /* orange */
- "#ffd700", "#c4a500", "#ffed00", /* yellow */
- "#228b22", "#186318", "#27a027", /* green */
- "#4682b4", "#325c80", "#4c8dc3", /* blue */
- "#faf0e6", "#b2aaa3", "#fff9ee", /* white */
+ "#8d2e28", "#6a1b17", "#a14842", /* red */
+ "#b46e28", "#924a16", "#c7904f", /* orange */
+ "#d8b740", "#c59f39", "#e2c65d", /* yellow */
+ "#286428", "#194719", "#4e874e", /* green */
+ "#003471", "#001f4f", "#00528b", /* blue */
+ "#dcdcdc", "#c0c0c0", "#eaeaea", /* white */
};
static void init_colours(struct app_state *state, Screen *screen)
w /= 5; h /= 5;
for (i = 0; i < 25; i++) {
- uint_least32_t *gp = state->board.game+1;
+ uint_least32_t *gp = state->board.game;
redraw_tile(state, display, game,
gp[0], gp[1], gp[2],