manim.camera.mapping_camera.OldMultiCamera

class OldMultiCamera(*cameras_with_start_positions, **kwargs)[source]

Bases: manim.camera.camera.Camera

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.

init_background

Initialize the background.

set_background

Sets the background to the passed pixel_array after converting to valid RGB values.

set_pixel_array

Sets the pixel array of the camera to the passed pixel array.

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().

init_background()[source]

Initialize the background. If self.background_image is the path of an image the image is set as background; else, the default background color fills the background.

set_background(pixel_array, **kwargs)[source]

Sets the background to the passed pixel_array after converting to valid RGB values.

Parameters
  • pixel_array (np.array, list, tuple) – The pixel array to set the background to.

  • convert_from_floats (bool, optional) – Whether or not to convert floats values to proper RGB valid ones, by default False

set_pixel_array(pixel_array, **kwargs)[source]

Sets the pixel array of the camera to the passed pixel array.

Parameters
  • pixel_array (np.array, list, tuple) – The pixel array to convert and then set as the camera’s pixel array.

  • convert_from_floats (bool, optional) – Whether or not to convert float values to proper RGB values, by default False