# Color.a

Returns the alpha value of a color.

**Kind:** Member

**Environments:** Game, Terrain

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/Color.md#a)

### Game Get

Returns the alpha value of a color.

**Returns:**

| Type | Description |
| --- | --- |
| number | The alpha value. |

### Game Set

Sets the alpha value of a color.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `a` | number | The alpha value. |

## Terrain

[Open the full Terrain reference](../Terrain-Script-Environment/Userdata/Color.md#a)

### Terrain Get

Returns the alpha value of a color.

**Returns:**

| Type | Description |
| --- | --- |
| number | The alpha value. |

### Terrain Set

Sets the alpha value of a color.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `a` | number | The alpha value. |
