get_n_colors func is not const