---
name: "setRainbow"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setRainbow
revid: 370469
updated: 2024-12-16T18:09:58Z
---

# setRainbow

*Command · Environment · Arma 3 v0.50*

Locality: effect **local**

## Description

Changes the rainbow value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

## Syntax

```sqf
time setRainbow value
```

**Parameters:**

- `time`: [Number](../topics/Number.md)
- `value`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
360 setRainbow 1;
```

## See also

[rainbow](../commands/rainbow.md)

## Community notes

**Sa-Matra** — 2022-07-01

This command seems to be completely local, no synchronization with other clients, no JIP, nothing, you have to do it all yourself.

<sub>Source: [BI Community Wiki — setRainbow](https://community.bistudio.com/wiki/setRainbow) (revision 370469).</sub>
