ILAMB.ilamblib.GenerateDistinctColors¶
- ILAMB.ilamblib.GenerateDistinctColors(N, saturation=0.67, value=0.67)[source]¶
Generates a series of distinct colors.
Computes N distinct colors using HSV color space, holding the saturation and value levels constant and linearly vary the hue. Colors are returned as a RGB tuple.
- Parameters
N (int) – number of distinct colors to generate
saturation (float, optional) – argument of HSV color space
value (float, optional) – argument of HSV color space
- Returns
RGB_tuples – list of N distinct RGB tuples
- Return type
list