# Color.__tostring

**Kind:** Operation

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
tostring(Color)
```

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

**Operations:**

| Operation | Returns | Description |
| --- | --- | --- |
| `tostring(Color)` | string | Returns the color as a string. |

## Terrain

``` { .lua .api-signature }
tostring(Color)
```

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

**Operations:**

| Operation | Returns | Description |
| --- | --- | --- |
| `tostring(Color)` | string | Returns the color as a string. |
