malhotra5 / Manim-Tutorial

A tutorial for manim, a mathematical animation engine made by 3b1b
690 stars 86 forks source link

What should I do if i want to graph a 1/4 circle... #9

Closed barakasamsara closed 5 years ago

barakasamsara commented 5 years ago

Now I know how to graph arc, arch,circle,semecircle... but I don't know how to graph 1/n circle ...

barakasamsara commented 5 years ago

for example, just the orange part...

image

Elteoremadebeethoven commented 5 years ago

With Sector

class CircleSection(Scene):
    def construct(self):
        part_circle = Sector(outer_radius = 3, color=ORANGE)
        self.play(Write(part_circle))
        self.wait()

See manimlib/mobject/geometry.py and here.

barakasamsara commented 5 years ago

With Sector

class CircleSection(Scene):
    def construct(self):
        part_circle = Sector(outer_radius = 3, color=ORANGE)
        self.play(Write(part_circle))
        self.wait()

See manimlib/mobject/geometry.py and here.

Thanks so much!!!