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

TypeNameDescription
colorcolorTop color of the procedural sky as {r, g, b, a}
stringhexAlternatively, a valid HTML hex color string (e.g. "#ffffff")

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set procedural sky top color using a color table
gfx.sky.procedural.set_sky_top_color({0.05, 0.1, 0.4, 1.0})
Set procedural sky top color using a hex string
gfx.sky.procedural.set_sky_top_color("#0d1a66")

On this page