def get_distinct_colors()

in robosumo/envs/utils.py [0:0]


def get_distinct_colors(n=2):
    """Source: https://stackoverflow.com/a/876872."""
    HSV_tuples = [(x * 1. / n, .5, .5) for x in range(n)]
    RGB_tuples = map(lambda x: colorsys.hsv_to_rgb(*x), HSV_tuples)
    return RGB_tuples