MCPcopy Create free account
hub / github.com/BerkeleyAutomation/meshrender / AmbientLight

Class AmbientLight

meshrender/light.py:34–48  ·  view source on GitHub ↗

An ambient light, which flatly shades all objects in the world.

Source from the content-addressed store, hash-verified

32 return self._strength
33
34class AmbientLight(Light):
35 """An ambient light, which flatly shades all objects in the world.
36 """
37
38 def __init__(self, color, strength):
39 """Initialize an ambient light with the given color and strength.
40
41 Parameters
42 ----------
43 color : (3,) float
44 The RGB color of the light in (0,1).
45 strength : float
46 The strength of the light.
47 """
48 super(AmbientLight, self).__init__(color, strength)
49
50
51class DirectionalLight(Light):

Callers 2

test_viewer.pyFile · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected