import colorsys


def class_specific_color(class_id, bright=True):
    """
    Generate class specific color.
    """
    brightness = 1.0 if bright else 0.7
    hsv = (class_id / 20, 1, brightness)
    color = colorsys.hsv_to_rgb(*hsv)
    return color