assign_color function documented