windkit.plot.color.reformat_colors

windkit.plot.color.reformat_colors(colors, output_type=<class 'int'>)[source]

Conversion to RGB colors.

Parameters:
  • colors (list of str or tuples of int) – list of RGB colors, 0-255 range RGB colors or HTML format

  • output_type (int or float, optional. Default: int) – Whether to write RGB colors in 0-255 or 0-1 range. Chose float to use with matplotlib.

Returns:

colors – RGB colors

Return type:

list of tuples