Arc¶
Qualified name: manim.mobject.geometry.arc.Arc
- class Arc(radius=1.0, start_angle=0, angle=1.5707963267948966, num_components=9, arc_center=array([0., 0., 0.]), **kwargs)[source]¶
Bases:
TipableVMobjectA circular arc.
Examples
A simple arc of angle Pi.
Example: ArcExample ¶
from manim import * class ArcExample(Scene): def construct(self): self.add(Arc(angle=PI))
class ArcExample(Scene): def construct(self): self.add(Arc(angle=PI))Methods
Initializes
pointsand therefore the shape.Looks at the normals to the first two anchors, and finds their intersection points
init_pointsmove_arc_center_tostop_angleAttributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- Parameters:
radius (float | None)
start_angle (float)
angle (float)
num_components (int)
arc_center (Point3DLike)
kwargs (Any)
- _original__init__(radius=1.0, start_angle=0, angle=1.5707963267948966, num_components=9, arc_center=array([0., 0., 0.]), **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
radius (float | None)
start_angle (float)
angle (float)
num_components (int)
arc_center (Point3DLike)
kwargs (Any)