color with its alpha replaced.
- color: the colour to start from.
- alpha: the new alpha, 0 to 1.
with_alpha :: (color: Color, alpha: float) -> Color
color with its alpha replaced.
Parameters
- color: Color
- the colour to start from.
- alpha: float
- the new alpha, 0 to 1.