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: MovingCameraScene

This is a Scene with special configurations made for when a particular part of the scene must be zoomed in on and displayed separately.

Methods

activate_zooming

This method is used to activate the zooming for the zoomed_camera.

get_zoom_factor

Returns the Zoom factor of the Zoomed camera.

get_zoom_in_animation

Returns the animation of camera zooming in.

get_zoomed_display_pop_out_animation

This is the animation of the popping out of the mini-display that shows the content of the zoomed camera.

setup

This method is used internally by Manim to setup the scene for proper use.

Attributes

camera

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.

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. :rtype: 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 valid keyword arguments of ApplyMethod()

Returns

The animation of the camera zooming in.

Return type

ApplyMethod

get_zoomed_display_pop_out_animation(**kwargs)[source]#

This is the animation of the popping out of the mini-display that shows the content of the zoomed camera.

Returns

The Animation of the Zoomed Display popping out.

Return type

ApplyMethod

setup()[source]#

This method is used internally by Manim to setup the scene for proper use.