Initialize a Scene object. Parameters ---------- background_color : (3,) float The background color for the scene. camera : :obj:`VirtualCamera` Camera to use for rendering
(self, background_color=np.array([1.0, 1.0, 1.0]),
camera=None)
| 14 | """ |
| 15 | |
| 16 | def __init__(self, background_color=np.array([1.0, 1.0, 1.0]), |
| 17 | camera=None): |
| 18 | """Initialize a Scene object. |
| 19 | |
| 20 | Parameters |
| 21 | ---------- |
| 22 | background_color : (3,) float |
| 23 | The background color for the scene. |
| 24 | camera : :obj:`VirtualCamera` |
| 25 | Camera to use for rendering |
| 26 | """ |
| 27 | self._objects = {} |
| 28 | self._lights = {} |
| 29 | self._ambient_light = AmbientLight(np.array([0.,0.,0.]), 0.0) |
| 30 | self._background_color = background_color |
| 31 | |
| 32 | self._renderer = None |
| 33 | self.camera = camera |
| 34 | |
| 35 | @property |
| 36 | def background_color(self): |
nothing calls this directly
no test coverage detected