gradgen allocated sizeof(i_color *) per entry rather than sizeof(i_color)