Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added example for :class:`~.Arc` (#1630)

peaceheis641c26b0c80b
diff --git a/manim/mobject/geometry.py b/manim/mobject/geometry.py
index 574c4a495..e997080d5 100644
--- a/manim/mobject/geometry.py
+++ b/manim/mobject/geometry.py
@@ -263,7 +263,19 @@ class TipableVMobject(VMobject, metaclass=ConvertToOpenGL):
class Arc(TipableVMobject):
- """A circular arc."""
+ """A circular arc.
+
+ Examples
+ --------
+ A simple arc of angle Pi.
+
+ .. manim:: ArcExample
+ :save_last_frame:
+
+ class ArcExample(Scene):
+ def construct(self):
+ self.add(Arc(angle=PI))
+ """
def __init__(
self,