Light: shadowColor

shadowColor
  • Returns the color of the shadows

Type: 
  • float list [ r, g, b]
Values:
  • r: Red Channel

    Range: 0.00 to 1.00
  • g: Green Channel

    Range: 0.00 to 1.00
  • b: Blue Channel

    Range 0.00 to 1.00
Shadows work with Spot and Sun lamps
  • Properties menu >> Object Data  >> Shadow checkbox
Shadow Color in Blender 3D
  • Properties menu >> Object Data >> Shadow
Sample Code

################## get the shadow color
 
# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the lights in the scene
lightList = scene.lights

# get the spotlight named Spot_Light
light = lightList["Spot_Light"]

# get shadow color
color_Shadow = light.shadowColor