Esempio n. 1
0
 def setup(self):
     Scene.setup(self)
     assert (isinstance(self.camera, MovingCamera))
     self.camera_frame = self.camera.frame
     # Hmm, this currently relies on the fact that MovingCamera
     # willd default to a full-sized frame.  Is that okay?
     return self
Esempio n. 2
0
 def setup(self):
     Scene.setup(self)
     assert(isinstance(self.camera, MovingCamera))
     self.camera_frame = self.camera.frame
     # Hmm, this currently relies on the fact that MovingCamera
     # willd default to a full-sized frame.  Is that okay?
     return self
Esempio n. 3
0
 def setup(self):
     """
     This method is used internally by Manim
     to set up the scene for proper use.
     """
     Scene.setup(self)
     assert (isinstance(self.camera, MovingCamera))
     self.camera_frame = self.camera.frame
     # Hmm, this currently relies on the fact that MovingCamera
     # willd default to a full-sized frame.  Is that okay?
     return self