scene_synthesizer.utils.adjust_color
- scene_synthesizer.utils.adjust_color(color=None, brightness=1.0, transparency=1.0, seed=None)
Adjust the brightness and transparency of a color.
- Parameters:
color (list[float], optional) – The RGB color to be used. If None, a random color will be chosen. Defaults to None.
brightness (float, optional) – Brightness of colors. Defaults to 1.0.
transparency (float, optional) – Transparency of colors. Defaults to 1.0.
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:
The adjusted color.
- Return type:
list[float]