gfx.env.set_ambient_color

Client

Sets the ambient light color of the environment


Syntax

local status = gfx.env.set_ambient_color(
    color
)
local status = gfx.env.set_ambient_color(
    hex
)

Parameters

TypeNameDescription
colorcolorAmbient light color 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 environment ambient color using a color table
gfx.env.set_ambient_color({1.0, 1.0, 1.0, 1.0})
Set environment ambient color using a hex string
gfx.env.set_ambient_color("#ffffff")

On this page