Skip to content

Arc

Arc Parameters#

Parameters - as mentioned in Azarzadvillas Documentation - are:

  • Constructor : - Arc

  • radius : Distance from arc_center to the arc

    • float (ex: 3)
    • Optional
    • Default: 1.0
  • arc_center : Point to which all points in the arc are equidistant

    • numpy array of dimension 3 (ex: (1,4,3))
    • Optional
    • Default: ORIGIN
  • start_angle : The angle at which to start the arc

    • float (in radians) (ex: math.radians(80))
    • Optional
    • Default: 0
  • angle : Total angle between the point in start angle and the last point in the arc, measured from the arc_center

    • float (in radians)
    • Optional
    • Default: TAU/4 (equal to PI/2)

Arc (angle one)#

from manimlib import *
import numpy as np

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

    angle = math.radians(-80)
    arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
    self.play(ShowCreation(arc), run_time=3)
    self.wait()
from manim import *
import numpy as np

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

        angle = -1.39626
        arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
        self.play(Create(arc), run_time=3)
        self.wait(2)

Arc (angle two)#

from manimlib import *
import numpy as np

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

        angle = math.radians(-80)
        arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(RIGHT)
        self.play(ShowCreation(arc), run_time=3)
        self.wait()
from manim import *
import numpy as np

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

        angle = -1.39626
        arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(RIGHT)
        self.play(Create(arc), run_time=3)
        self.wait(2)

Arc (angle three)#

from manimlib import *
import numpy as np

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

        angle = math.radians(-80)
        arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(UP+RIGHT)
        self.play(ShowCreation(arc), run_time=3)
        self.wait()
from manim import *
import numpy as np

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

        angle = -1.39626
        arc = Arc(arc_center=(-2, 1.5, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(UP+RIGHT)
        self.play(Create(arc), run_time=3)
        self.wait(2)

Arc (angle four)#

from manimlib import *
import numpy as np

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

        angle = math.radians(80)
        arc = Arc(arc_center=(-1, -1, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(UP+LEFT)
        self.play(ShowCreation(arc), run_time=3)
        self.wait()
from manim import *
import numpy as np

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

        angle = 1.39626
        arc = Arc(arc_center=(-1, -1, 0), radius=2.5, angle=angle, color=YELLOW)
        arc.flip(UP+LEFT)
        self.play(Create(arc), run_time=3)
        self.wait(2)
Back to top