gfx.env.set_background_color
Client
Sets the background color of the environment
Syntax
local status = gfx.env.set_background_color(
color
)local status = gfx.env.set_background_color(
hex
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Background color as {r, g, b, a} |
string | hex | Alternatively, a valid HTML hex color string (e.g. "#ffffff") |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
gfx.env.set_background_color({0.1, 0.2, 0.4, 1.0})gfx.env.set_background_color("#1a3366")