GetCameraClearColor
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
| Line 2: | Line 2: | ||
Returns the current background color for the camera as RGB table. | Returns the current background color for the camera as RGB table. | ||
| + | |||
| + | {{lua-function-param|object|object to operate on}} | ||
Camera = getCurrentCamera() | Camera = getCurrentCamera() | ||
Latest revision as of 00:05, 9 February 2014
getCameraClearColor(object)
Returns the current background color for the camera as RGB table.
-
object: object to operate on
Camera = getCurrentCamera() background = getCameraClearColor(Camera) red = background[1] green = background[2] blue = background[3]
To set background color use setCameraClearColor.