Components.WithAlpha
Extension Method in Components
Declaration
public static Color WithAlpha(this Color color, float alpha)Description
Returns a copy of the color with a new alpha component value.
Parameters
| color | The color to copy. |
| alpha | The new component value in the range [0..1]. |
Returns
| Color | A copy of the color with the new alpha component value. |