ZoomedScene¶
Qualified name: manim.scene.zoomed\_scene.ZoomedScene
- class ZoomedScene(camera_class=<class 'manim.camera.multi_camera.MultiCamera'>, zoomed_display_height=3, zoomed_display_width=3, zoomed_display_center=None, zoomed_display_corner=array([1., 1., 0.]), zoomed_display_corner_buff=0.5, zoomed_camera_config={'background_opacity': 1, 'default_frame_stroke_width': 2}, zoomed_camera_image_mobject_config={}, zoomed_camera_frame_starting_position=array([0., 0., 0.]), zoom_factor=0.15, image_frame_stroke_width=3, zoom_activated=False, **kwargs)[source]¶
Bases:
MovingCameraSceneThis is a Scene with special configurations made for when a particular part of the scene must be zoomed in on and displayed separately.
Methods
This method is used to activate the zooming for the zoomed_camera.
Returns the Zoom factor of the Zoomed camera.
Returns the animation of camera zooming in.
This is the animation of the popping out of the mini-display that shows the content of the zoomed camera.
This method is used internally by Manim to setup the scene for proper use.
Attributes
cameratimeThe time since the start of the scene.
- Parameters:
camera_class (type[Camera])
zoomed_display_height (float)
zoomed_display_width (float)
zoomed_display_center (Point3DLike | None)
zoomed_display_corner (Vector3D)
zoomed_display_corner_buff (float)
zoomed_camera_config (dict[str, Any])
zoomed_camera_image_mobject_config (dict[str, Any])
zoomed_camera_frame_starting_position (Point3DLike)
zoom_factor (float)
image_frame_stroke_width (float)
zoom_activated (bool)
kwargs (Any)
- activate_zooming(animate=False)[source]¶
This method is used to activate the zooming for the zoomed_camera.
- Parameters:
animate (bool) – Whether or not to animate the activation of the zoomed camera.
- Return type:
None
- get_zoom_factor()[source]¶
Returns the Zoom factor of the Zoomed camera.
Defined as the ratio between the height of the zoomed camera and the height of the zoomed mini display.
- Returns:
The zoom factor.
- Return type:
float
- get_zoom_in_animation(run_time=2, **kwargs)[source]¶
Returns the animation of camera zooming in.
- Parameters:
run_time (float) – The run_time of the animation of the camera zooming in.
**kwargs (Any) – Any valid keyword arguments of ApplyMethod()
- Returns:
The animation of the camera zooming in.
- Return type: