delta.utils.random_colors¶
- delta.utils.random_colors(cellids, seed=0)[source]¶
Generate list of random hsv colors.
- Parameters:
- cellidsIterable (for example list, tuple or iterator)
Cellids which should be assigned random colors.
- seedint, optional
Random seed used to shuffle colors.
- Returns:
- colorsdict[int, tuple[float, float, float]]
Dictionary of cellids to colors (RGB values in [0,1]).