A community-maintained Python framework for creating mathematical animations.
Added Elbow
Grant Sanderson12c50f1722cf
diff --git a/mobject/geometry.py b/mobject/geometry.pyindex cdc920e7e..ed05d3d76 100644--- a/mobject/geometry.py+++ b/mobject/geometry.py@@ -481,6 +481,19 @@ class DashedLine(Line):return self.end+class Elbow(VMobject):+ CONFIG = {+ "width": 0.2,+ "angle": 0,+ }++ def __init__(self, **kwargs):+ VMobject.__init__(self, **kwargs)+ self.set_points_as_corners([UP, UP + RIGHT, RIGHT])+ self.set_width(self.width, about_point=ORIGIN)+ self.rotate(self.angle, about_point=ORIGIN)++class Arrow(Line):CONFIG = {"tip_length": 0.25,