/* Draws the color pallet to the display. 
This function draws the paint pallet to the display, including the special function entries (such as display clear) and the selection box.  */
static void draw_paint_pallet(void)
/* Draws the color pallet to the display. 
This function draws the paint pallet to the display, including the special function entries (such as display clear) and the selection box.  */
static void draw_paint_pallet(void)
{
	for (uint8_t i = 0; i < NUM_PALLET_COLORS; i++) {
		gfx_draw_filled_rect(
				PALLET_COLOR_WIDTH * i,
				gfx_get_height() - PALLET_HEIGHT,
				PALLET_COLOR_WIDTH,
				PALLET_HEIGHT, pallet_colors[i]);
	}
	gfx_draw_horizontal_line(0,
			(gfx_get_height() - PALLET_HEIGHT - 1),
			gfx_get_width(), GFX_COLOR_GRAY);
	draw_pallet_labels(false);
	update_pallet_selection();
}