pattern_clustering.html.make_html_colors

make_html_colors(num_colors: int, s: str = '80%', l: str = '40%') list[source]

Makes a list of num_colors rainbow colors.

Parameters
  • num_colors (int) – The number of colors to generate.

  • s (str) – The saturation (cf HSL), e.g., “80%”.

  • l (str) – The light (cf HSL), e.g., “40%” .

Returns

A list of num_colors strings containing HTML colors.