Skip to content

Commit

Permalink
Added Underline
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Dec 10, 2019
1 parent 3628b61 commit f89bb3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manimlib/mobject/shape_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,14 @@ def __init__(self, mobject, **kwargs):
)
self.replace(mobject, stretch=True)
self.set_stroke(self.stroke_color, self.stroke_width)


class Underline(Line):
CONFIG = {
"buff": SMALL_BUFF,
}

def __init__(self, mobject, **kwargs):
super().__init__(LEFT, RIGHT)
self.match_width(mobject)
self.next_to(mobject, DOWN, buff=self.buff)

0 comments on commit f89bb3e

Please sign in to comment.