mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Added Elbow
This commit is contained in:
parent
585a4ff864
commit
12c50f1722
1 changed files with 13 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue