gfx.sky.procedural.set_ground_bottom_color

Client

Sets the bottom color of the procedural ground


Syntax

local status = gfx.sky.procedural.set_ground_bottom_color(
    color
)
local status = gfx.sky.procedural.set_ground_bottom_color(
    hex
)

Parameters

TypeNameDescription
colorcolorBottom color of the procedural ground 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 ground bottom color using a color table
gfx.sky.procedural.set_ground_bottom_color({0.1, 0.07, 0.034, 1.0})
Set procedural sky ground bottom color using a hex string
gfx.sky.procedural.set_ground_bottom_color("#1a1208")

On this page