iaa_od.palette.to_rgba
- iaa_od.palette.to_rgba(color, /, *, alpha=1.0)[source]
Converts an RGB color tuple to an RGBA color tuple with the specified alpha value (1.0 by default).
- Parameters:
color (tuple[int, int, int]) – A tuple representing the RGB color (R, G, B) with values in the range 0-255.
alpha (float) – The alpha value for the RGBA color, ranging from 0.0 (fully transparent) to 1.0 (fully opaque).
- Returns:
A tuple representing the RGBA color (R, G, B, A) with values in the range 0.0-1.0.
- Return type:
tuple[float, float, float, float]