Table of Contents

Method WithAlpha

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

WithAlpha(Color, float)

Returns the same color, but with the specified alpha.

public static Color WithAlpha(this Color color, float alpha)

Parameters

color Color

The color.

alpha float

The alpha.

Returns

Color

Color.