GetCameraClearColor

From MaratisWiki
(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...")
 
m
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{lua-function|getCameraClearColor|object}}
 +
 
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()
Line 8: Line 12:
  
 
To set background color use [[setCameraClearColor]].
 
To set background color use [[setCameraClearColor]].
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Latest revision as of 01: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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox