# GuiInterface.setColor

Sets the color of a widget

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setColor( widgetName, Color )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `widgetName` | string | The name of the widget |
| `Color` | [Color](../Game-Script-Environment/Userdata/Color.md) | The color |
