pattern_clustering.html.values_to_colors

values_to_colors(values: iter, *args, **kwargs) dict[source]

Maps some distinguishable values (possibly duplicated) with distinct HTML colors. :param values: An iterable containing arbitrary hashable objects. :type values: iter :param *args: See make_html_colors. :param **kwargs: See make_html_colors.

Returns

A dictionary mapping each distinct value with a corresponding HTML color.