mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Beginnings of TOP project
This commit is contained in:
@ -113,6 +113,7 @@ class Arrow(Line):
|
||||
"color" : YELLOW_C,
|
||||
"tip_length" : 0.25,
|
||||
"buff" : 0.3,
|
||||
"propogate_style_to_family" : True,
|
||||
}
|
||||
def __init__(self, *args, **kwargs):
|
||||
if len(args) == 1:
|
||||
@ -145,6 +146,13 @@ class Vector(Arrow):
|
||||
def __init__(self, start, direction, **kwargs):
|
||||
Arrow.__init__(self, start, end, **kwargs)
|
||||
|
||||
class DoubleArrow(Arrow):
|
||||
def __init__(self, *args, **kwargs):
|
||||
Arrow.__init__(self, *args, **kwargs)
|
||||
self.start, self.end = self.end, self.start
|
||||
self.add_tip()
|
||||
self.start, self.end = self.end, self.start
|
||||
|
||||
class Cross(VMobject):
|
||||
CONFIG = {
|
||||
"color" : YELLOW,
|
||||
|
Reference in New Issue
Block a user