pattern_clustering.html.colors_to_html
- colors_to_html(colors: list, i_to_label, join: str = ' ') str [source]
Export a list of HTML colors to HTML strings.
- Parameters
colors (list) – The HTML colors.
i_to_label (callable) – A Callback(int) -> str returning the label corresponding to a given color index (according to colors).
join (str) – A string used to join HTML strings related to each color, defaults to “ “.
- Returns
The corresponding HTML string.