mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add kwargs to set_length
This commit is contained in:
parent
0dc096bf57
commit
b24ba19dec
1 changed files with 3 additions and 2 deletions
|
@ -29,6 +29,7 @@ DEFAULT_ARROW_TIP_LENGTH = 0.35
|
|||
DEFAULT_ARROW_TIP_WIDTH = 0.35
|
||||
|
||||
|
||||
# Deprecate?
|
||||
class TipableVMobject(VMobject):
|
||||
"""
|
||||
Meant for shared functionality between Arc and Line.
|
||||
|
@ -498,8 +499,8 @@ class Line(TipableVMobject):
|
|||
)
|
||||
return self
|
||||
|
||||
def set_length(self, length):
|
||||
self.scale(length / self.get_length())
|
||||
def set_length(self, length, **kwargs):
|
||||
self.scale(length / self.get_length(), **kwargs)
|
||||
|
||||
|
||||
class DashedLine(Line):
|
||||
|
|
Loading…
Add table
Reference in a new issue