SetCameraClearColor

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Set the background color. Camera = getCurrentCamera() -- Set background color to black setCameraClearColor(Camera, {0, 0, 0})")
 
m
 
(3 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()
 
  -- Set background color to black
 
  -- Set background color to black
 
  setCameraClearColor(Camera, {0, 0, 0})
 
  setCameraClearColor(Camera, {0, 0, 0})
 +
 +
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

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