MappingCamera

Qualified name: manim.camera.mapping\_camera.MappingCamera

class MappingCamera(mapping_func=<function MappingCamera.<lambda>>, min_num_curves=50, allow_object_intrusion=False, **kwargs)[source]

Bases: manim.camera.camera.Camera

Camera object that allows mapping between objects.

Initialises the Camera.

Parameters
  • background (optional) – What self.background should be, by default None as will be set later.

  • **kwargs – Any local variables to be set.

Methods

capture_mobjects

Capture mobjects by printing them on pixel_array.

points_to_pixel_coords

Attributes

background_color

background_opacity

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 (Mobject) – Mobjects to capture.

  • kwargs (Any) – Keyword arguments to be passed to get_mobjects_to_display().

Notes

For a list of classes that can currently be rendered, see display_funcs().