---
name: "BIS_fnc_displayColorGet"
type: function
status: ok
groups: ["GUI"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_displayColorGet
revid: 349349
updated: 2023-11-08T14:53:31Z
---

# BIS_fnc_displayColorGet

*Function · GUI · Arma 3 v0.50 · introduced in Take On Helicopters v1.00*

## Description

Loads custom [color settings](../topics/User_Interface_Colors.md) from CfgUIDefault.

If variables are not stored in [profileNamespace](../commands/profileNamespace.md) yet, the function will declare them.

|  |  |
|---|---|
| **Arma 3 v1.99**<br>\| Tag \| Variable \| Description \|<br>\|---\|---\|---\|<br>\| "IGUI" \| "BCG_RGB" \| Backgrounds \|<br>\| "IGUI" \| "TEXT_RGB" \| Active Elements \|<br>\| "IGUI" \| "WARNING_RGB" \| Warnings \|<br>\| "IGUI" \| "ERROR_RGB" \| Errors \|<br>\| "IGUI" \| "TACTPING_RGB" \| Tactical Ping \|<br>\| "GUI" \| "BCG_RGB" \| Backgrounds \|<br>\| "GUI" \| "TITLETEXT_RGB" \| Title Text \|<br>\| "Map" \| "BLUFOR" \| BLUFOR \|<br>\| "Map" \| "OPFOR" \| OPFOR \|<br>\| "Map" \| "Independent" \| Independent \|<br>\| "Map" \| "Civilian" \| Civilian \|<br>\| "Map" \| "Unknown" \| Unknown \|<br>\| "Subtitles" \| "Background" \| Subtitle background \|<br>\| "Subtitles" \| "Text" \| Subtitle text \| | **Take On Helicopters v1.00**<br>\| Tag \| Variable \| Description \|<br>\|---\|---\|---\|<br>\| "IGUI" \| "IGUI_TEXT_RGB" \| HUD color **RGB** \|<br>\| "IGUI" \| "IGUI_TEXT_COLOR" \| HUD color **RGBA** \|<br>\| "GUI" \| "BCG_RGB" \| menu background **RGB** \|<br>\| "GUI" \| "GUI_BCG_COLOR" \| menu background **RGBA** \|<br>\| "GUI" \| "GUI_BCG_MEDIUM_RGB" \| button background **RGB** (darker version of GUI_BCG_RGB) \|<br>\| "GUI" \| "GUI_BCG_MEDIUM_COLOR" \| button background **RGBA** \|<br>\| "GUI" \| "GUI_BCG_ACTIVE_RGB" \| active button background color (e.g. focused buttons) **RGB** \| |

## Syntax

### Syntax 1

```sqf
[tag, variable] call BIS_fnc_displayColorGet
```

**Parameters:**

- `tag`: [String](../topics/String.md) - tag defined in [CfgUIDefault](../topics/User_Interface_Colors.md)
- `variable`: [String](../topics/String.md) - variable defined in "CfgUIColors" >> Variables

**Returns:** [Array](../topics/Array.md) - in format [Color (RGBA)](../topics/Color.md)

### Syntax 2

```sqf
init call BIS_fnc_displayColorGet
```

**Parameters:**

- `init`: [Boolean](../topics/Boolean.md) - when used, function will initialize all color presets

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

## Examples

### Example 1

```sqf
["GUI", "BCG_RGB"] call BIS_fnc_displayColorGet;//Returns menu color
```

## See also

[Color](../topics/Color.md) · [BIS_fnc_colorRGBtoHTML](../functions/BIS_fnc_colorRGBtoHTML.md) · [BIS_fnc_colorRGBAtoHTML](../functions/BIS_fnc_colorRGBAtoHTML.md) · [BIS_fnc_colorRGBAtoTexture](../functions/BIS_fnc_colorRGBAtoTexture.md)

<sub>Source: [BI Community Wiki — BIS fnc displayColorGet](https://community.bistudio.com/wiki/BIS_fnc_displayColorGet) (revision 349349).</sub>
