gfx.sky.procedural.set_sky_top_color
Client
Sets the top color of the procedural sky
Syntax
local status = gfx.sky.procedural.set_sky_top_color(
color
)local status = gfx.sky.procedural.set_sky_top_color(
hex
)Parameters
| Type | Name | Description |
|---|---|---|
color | color | Top color of the procedural sky 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.sky.procedural.set_sky_top_color({0.05, 0.1, 0.4, 1.0})gfx.sky.procedural.set_sky_top_color("#0d1a66")