Turn on C division in map_colors() to speed up the loop.