# setSkyColor (Client)

> Paints the sky with a gradient from the top to the horizon, over the time cycle, until `resetSkyColor` restores it.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/setSkyColor

## Syntax

```lua
bool setSkyColor(color top [, color bottom = top])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `top` | `color` | The colour at the top of the sky: three numbers `r, g, b` (integers from 0 to 255) or a `tocolor` value. |
| `bottom` | `color` | The colour near the horizon, in the same form. *(default: `top`)* |

## Returns

`true` once the colours are set.

## Example

```lua
setSkyColor(20, 30, 80, 200, 120, 60)
```

## See also

- [getSkyColor (Client)](https://wiki.mymp.gg/en/getSkyColor.md): Returns the sky gradient setSkyColor set.
- [resetSkyColor (Client)](https://wiki.mymp.gg/en/resetSkyColor.md): Undoes setSkyColor: the sky follows the time cycle again.
