Skip to content

Commit

Permalink
Add kwargs to set_length
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Aug 26, 2021
1 parent 0dc096b commit b24ba19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manimlib/mobject/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
DEFAULT_ARROW_TIP_WIDTH = 0.35


# Deprecate?
class TipableVMobject(VMobject):
"""
Meant for shared functionality between Arc and Line.
Expand Down Expand Up @@ -498,8 +499,8 @@ def set_angle(self, angle, about_point=None):
)
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):
Expand Down

0 comments on commit b24ba19

Please sign in to comment.