Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from manim import *
- config.pixel_height = 1920
- config.pixel_width = 1080
- config.frame_height = 16
- config.frame_width = 9
- config.frame_rate = 60
- class saida(Scene):
- def construct(self):
- # Sistema original com x, y e z
- sistema_original = MathTex(
- r"\left\{ \begin{aligned} "
- r"&x + y + z = 4 \\ "
- r"&x^2 + y^2 + z^2 = 14 \\ "
- r"&x^3 + y^3 + z^3 = 34 "
- r"\end{aligned} \right."
- )
- sistema_original.to_edge(UP)
- # Sistema simplificado com x e y
- sistema_simplificado = MathTex(
- r"\left\{ \begin{aligned} "
- r"&x + y = (\text{uma}\, \text{constante}) \\ "
- r"&x^2 + y^2 = (\text{outra}\, \text{constante})"
- r"\end{aligned} \right."
- )
- ehisso = Text("¯\\_(ツ)_/¯", font="Arial", font_size=68)
- sistema_simplificado.next_to(sistema_original, DOWN, buff=2)
- ehisso.next_to(sistema_simplificado, DOWN, buff=2)
- # Criando uma seta para baixo entre os sistemas
- arrow = Arrow(start=sistema_original.get_bottom(),
- end=sistema_simplificado.get_top(),
- buff=0.5,
- color=YELLOW)
- # Exibir sistema original
- self.play(Write(sistema_original))
- self.wait(1)
- # Adicionando a seta animada
- self.play(Write(arrow))
- self.wait(1)
- # Exibir sistema simplificado
- self.play(Write(sistema_simplificado))
- self.wait(2)
- self.play(Write(ehisso))
- self.wait(2)
Add Comment
Please, Sign In to add comment