GetCameraClearColor

(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Revision as of 19:40, 4 February 2014

Returns the current background color for the camera as RGB table.

Camera = getCurrentCamera()
background = getCameraClearColor(Camera)
red = background[1]
green = background[2]
blue = background[3]

To set background color use setCameraClearColor.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox