Skip to content

MovingCameraScene integration #185

Closed Answered by francescotaurone
francescotaurone asked this question in Q&A
Discussion options

You must be logged in to vote

Sure! Here is a simplified snippet:

from manim import *
from manim_slides import Slide
class SubclassExample(Slide, MovingCameraScene):
    def construct(self):
        eq1 = MathTex(r"x = 1")
        eq2 = MathTex(r"x = 2")
        self.play(Write(eq1))
        self.next_slide()
        self.play(TransformMatchingTex(eq1, eq2),
            self.camera.frame.animate.scale(0.5)
        )
        self.wait()

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jeertmans
Comment options

@francescotaurone
Comment options

@jeertmans
Comment options

@francescotaurone
Comment options

Answer selected by francescotaurone
@jeertmans
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants