An ambient light, which flatly shades all objects in the world.
| 32 | return self._strength |
| 33 | |
| 34 | class 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 | |
| 51 | class DirectionalLight(Light): |
no outgoing calls
no test coverage detected