pattern_clustering.html.colors_to_html
- colors_to_html(colors: list, i_to_label, join: str = ' ') str [source]
Exports 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 tocolors
).join (str) – A string used to join HTML strings related to each color. Defaults to
" "
.
- Returns
The corresponding HTML string.