Color.WithAlpha

Color.WithAlpha method

Creates copy of the Color with specified alpha component.

public Color WithAlpha(float alpha)
ParameterTypeDescription
alphaSingleValue of Alpha component

Return Value

A new instance of the Color class

See Also