GetCameraClearColor

(Difference between revisions)
Jump to: navigation, search
(Created page with "Returns the current background color for the camera as RGB table. Camera = getCurrentCamera() background = getCameraClearColor(Camera) red = background[1] green = backgro...")
 
Line 8: Line 8:
  
 
To set background color use [[setCameraClearColor]].
 
To set background color use [[setCameraClearColor]].
 +
 +
[[Category:Lua scripting]]

Revision as of 19:11, 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