---
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 from CfgUIDefault.

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

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