MultiCamera¶
Qualified name: manim.camera.multi\_camera.MultiCamera
- class MultiCamera(image_mobjects_from_cameras=None, allow_cameras_to_capture_their_own_display=False, **kwargs)[source]¶
Bases:
MovingCameraCamera Object that allows for multiple perspectives.
Initialises the MultiCamera
- Parameters:
image_mobjects_from_cameras (Iterable[ImageMobjectFromCamera] | None)
kwargs (Any) – Any valid keyword arguments of MovingCamera.
allow_cameras_to_capture_their_own_display (bool)
Methods
Adds an ImageMobject that's been obtained from the camera into the list
self.image_mobject_from_camerasCapture mobjects by printing them on
pixel_array.Returns all mobjects whose movement implies that the camera should think of all other mobjects on the screen as moving
Resets the MultiCamera.
Reshape sub_camera pixel_arrays
Attributes
background_colorbackground_opacityframe_centerReturns the centerpoint of the frame in cartesian coordinates.
frame_heightReturns the height of the frame.
frame_widthReturns the width of the frame
- add_image_mobject_from_camera(image_mobject_from_camera)[source]¶
Adds an ImageMobject that’s been obtained from the camera into the list
self.image_mobject_from_cameras- Parameters:
image_mobject_from_camera (ImageMobjectFromCamera) – The ImageMobject to add to self.image_mobject_from_cameras
- Return type:
None
- capture_mobjects(mobjects, **kwargs)[source]¶
Capture mobjects by printing them on
pixel_array.This is the essential function that converts the contents of a Scene into an array, which is then converted to an image or video.
- Parameters:
mobjects (Iterable[Mobject]) – Mobjects to capture.
kwargs (Any) – Keyword arguments to be passed to
get_mobjects_to_display().
- Return type:
None
Notes
For a list of classes that can currently be rendered, see
display_funcs().
- get_mobjects_indicating_movement()[source]¶
Returns all mobjects whose movement implies that the camera should think of all other mobjects on the screen as moving
- Return type:
list