scene_synthesizer.utils.random_color
- scene_synthesizer.utils.random_color(dtype=np.uint8, seed=None)
Return a random RGB color using datatype specified. Same version as trimesh.visual.random_color but with seed.
- Parameters:
dtype (np.dtype) – numpy dtype of result
seed (int, numpy.random._generator.Generator, optional) – A seed or random number generator. Defaults to None which creates a new default random number generator.
- Returns:
random color of type dtype
- Return type:
np.ndarray(4,)