UI module

with_alpha

procedure · 1 overloadsince 0.31.0Source

color with its alpha replaced.

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.

Returns

See also