gfx.env.get_background_color

Client

Retrieves the current background color of the environment


Syntax

local result = gfx.env.get_background_color()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
colorresultBackground color as {r, g, b, a}

Examples

Print current environment background color
core.engine.print("info", "Background color:", util.table.unpack(gfx.env.get_background_color()))

On this page