---
name: "tvSetPictureColor"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "0.74"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/tvSetPictureColor
revid: 377815
updated: 2026-01-03T04:13:41Z
---

# tvSetPictureColor

*Command · GUI Control - Tree View · Arma 3 v0.74*

Locality: arguments **local** · effect **local**

## Description

Sets the colour of the picture (set via [tvSetPicture](../commands/tvSetPicture.md)) under the specified tree view path.

## Syntax

### Syntax 1

```sqf
tvSetPictureColor [idc, path, color]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - IDC of the tree view control
- `path`: [Tree View Path](../topics/Tree_View_Path.md)
- `color`: [Color (RGBA)](../topics/Color.md)

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

### Syntax 2

```sqf
ctrl tvSetPictureColor [path, color]
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md)
- `color`: [Color (RGBA)](../topics/Color.md)

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

## Examples

### Example 1

```sqf
tvSetPictureColor [101, [0,2], [1,0,1,1]];
```

### Example 2

```sqf
_tree tvSetPictureColor [[0,2], [1,0,1,1]];
```

## See also

[tvAdd](../commands/tvAdd.md) · [tvClear](../commands/tvClear.md) · [tvCollapse](../commands/tvCollapse.md) · [tvCount](../commands/tvCount.md) · [tvCurSel](../commands/tvCurSel.md) · [tvData](../commands/tvData.md) · [tvDelete](../commands/tvDelete.md) · [tvExpand](../commands/tvExpand.md) · [tvPicture](../commands/tvPicture.md) · [tvSetCurSel](../commands/tvSetCurSel.md) · [tvSetData](../commands/tvSetData.md) · [tvSetPicture](../commands/tvSetPicture.md) · [tvSetValue](../commands/tvSetValue.md) · [tvSort](../commands/tvSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [tvText](../commands/tvText.md) · [tvValue](../commands/tvValue.md)

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