
ambientColor
- Get/set the ambient color of the scene
- float List [ r, g, b]
- r = red color value
Range: 0.00 to 1.00
- g = green color value
Range: 0.00 to 1.00
- b = blue color value
Range: 0.00 to 1.00
Ambient Color setting in Blender 3D
- Properties menu >> World >> World >> Ambient Color

Sample Code
################ get the ambient color
# import bge module
import bge
# get the current scene
scene = bge.logic.getCurrentScene()
# get the world module
wrld = scene.world
# get the ambient color
ambient_color = wrld.ambientColor
Sample Code
################ set the ambient color
# import bge module
import bge
# get the current scene
scene = bge.logic.getCurrentScene()
# get the world module
wrld = scene.world
# set the ambient color to yellow
wrld.ambientColor = [ 0.5, 0.5, 0.0 ]