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.
- r is the intensity of red,
- g is the intensity of green,
- b is the intensity of blue
- a, if present, is alpha (opacity). An alpha value of 0 means totally transparent and a value of 1 means totally opaque.
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 |
html |
|
| White | sqf |
html |
|
| Camo green | sqf |
html |
|
| Rust orange | sqf |
html |