Skip to content

New zoom function: self.camera_frame zooms at all visibile Mobjects #1056

@kolibril13

Description

@kolibril13

Currently, it is possible to set the width of the frame like this:

class Example1(MovingCameraScene):
    def construct(self):
        text = Text("Hello World")
        self.add(text)
        self.wait()
        self.camera_frame.set_width(text.get_width()*1.2)
        self.wait()
72c0d397490c7ced21478727e34edf6d3c251484.mp4

I think it would be nice to give self.camera_frame a further function, that scans the boundary points of all visible Mobjects and then mooves the current camera frame to that area.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionRequesting a feature or change for Manim

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions