Arma 3 Scripting

Topic in Scripting

Color

Also available as Markdown and JSON, or read the original wiki page.

Color is a format of an Array, namely an Array of Numbers in format [r, g, b] or [r, g, b, a], values ranging from 0 to 1.

Note

In config, the color array respects the RGBA format, only it is encapsulated by curly braces:

myColor[] = { 1, 1, 1, 1 };

Examples

Colour SQF Array HTML Render
Mauve purple sqf
[0.3, 0.3, 0.5, 1]
html
#4D4D80
White sqf
[1, 1, 1, 1]
html
#FFFFFF
Camo green sqf
[0, 0.2, 0, 1]
html
#003300
Rust orange sqf
[0.73, 0.24, 011, 1]
html
#BA3D1C