3

So I am doing some pythagorean theorem related things with manim but I need to get each point of the triangle so I can add a, b, c on each point but how do I do that?

class Pythagorean(Scene):
    def construct(self):

        triangle = Polygon(np.array([0,-2,2]),np.array([2,2,0]),np.array([2,-2,0]), run_time=2, color=lightyellow).move_to(0.5*LEFT)
        triangle.set_fill(lighteryellow, opacity=1.0)
        self.add(triangle)
        self.play(Write(triangle))
        self.wait(3)
rioV8
  • 24,506
  • 3
  • 32
  • 49

0 Answers0