<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setFogColor](./server.world.setfogcolor.md)

## World.setFogColor() method

Sets the color of the world's fog.

**Signature:**

```typescript
setFogColor(color: RgbColor | undefined): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

color


</td><td>

[RgbColor](./server.rgbcolor.md) \| undefined


</td><td>

The color of the fog, or undefined to reset to ambient light color.


</td></tr>
</tbody></table>
**Returns:**

void

