cosmicfish_pylib.colors.nice_colors

cosmicfish_pylib.colors.nice_colors(num)[source]

This function returns a color from a colormap defined below according to the number entered.

Parameters:num (int or float) – input number. Can be an integer or float. Notice that the colormap contains only a small numbers of colors. Even if the input is a float the output will still be one of the few colors in the colormap.
Returns:tuple of float containing the three RGB coordinates of the color.
Return type:tuple