SetCameraClearColor

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{lua-function|setCameraClearColor|object, color}}
 +
 
Set the background color.
 
Set the background color.
 +
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|color|rgb color table}}
  
 
  Camera = getCurrentCamera()
 
  Camera = getCurrentCamera()
Line 6: Line 11:
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Latest revision as of 00:07, 9 February 2014

setCameraClearColor(object, color)

Set the background color.

  • object : object to operate on
  • color : rgb color table
Camera = getCurrentCamera()
-- Set background color to black
setCameraClearColor(Camera, {0, 0, 0})
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox