that_one_nigga_you_k

eh isso

Jan 27th, 2025
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.60 KB | None | 0 0
  1. from manim import *
  2.  
  3. config.pixel_height = 1920
  4. config.pixel_width = 1080
  5. config.frame_height = 16
  6. config.frame_width = 9
  7. config.frame_rate = 60
  8.  
  9.  
  10. class saida(Scene):
  11.     def construct(self):
  12.         # Sistema original com x, y e z
  13.         sistema_original = MathTex(
  14.             r"\left\{ \begin{aligned} "
  15.             r"&x + y + z = 4 \\ "
  16.             r"&x^2 + y^2 + z^2 = 14 \\ "
  17.             r"&x^3 + y^3 + z^3 = 34 "
  18.             r"\end{aligned} \right."
  19.         )
  20.         sistema_original.to_edge(UP)
  21.  
  22.         # Sistema simplificado com x e y
  23.         sistema_simplificado = MathTex(
  24.             r"\left\{ \begin{aligned} "
  25.             r"&x + y = (\text{uma}\, \text{constante}) \\ "
  26.             r"&x^2 + y^2 = (\text{outra}\, \text{constante})"
  27.             r"\end{aligned} \right."
  28.         )
  29.  
  30.         ehisso = Text("¯\\_(ツ)_/¯", font="Arial", font_size=68)
  31.  
  32.         sistema_simplificado.next_to(sistema_original, DOWN, buff=2)
  33.         ehisso.next_to(sistema_simplificado, DOWN, buff=2)
  34.  
  35.         # Criando uma seta para baixo entre os sistemas
  36.         arrow = Arrow(start=sistema_original.get_bottom(),
  37.                       end=sistema_simplificado.get_top(),
  38.                       buff=0.5,
  39.                       color=YELLOW)
  40.  
  41.         # Exibir sistema original
  42.         self.play(Write(sistema_original))
  43.         self.wait(1)
  44.  
  45.         # Adicionando a seta animada
  46.         self.play(Write(arrow))
  47.         self.wait(1)
  48.  
  49.         # Exibir sistema simplificado
  50.         self.play(Write(sistema_simplificado))
  51.         self.wait(2)
  52.         self.play(Write(ehisso))
  53.         self.wait(2)
Add Comment
Please, Sign In to add comment