# Color.WithAlpha

```csharp
Color WithAlpha(float alpha)
```

Returns this color with its alpha value changed

### Parameters

- `alpha` (`float`): The required alpha value, usually between 0-1

### Returns

`Color`

Declared in [Color](/api/Color).
Assembly: `Sandbox.System`.
