Skip to content

Commit 458b5b1

Browse files
authored
fix - make sure stroke color & width gets applied in Cross object (#1050)
* fix - make sure stroke color & width get applied in Cross object * fix - make linter happy
1 parent 60b240a commit 458b5b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

manim/mobject/shape_matchers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@ def get_fill_color(self):
7676

7777
class Cross(VGroup):
7878
def __init__(self, mobject, stroke_color=RED, stroke_width=6, **kwargs):
79-
self.stroke_color = stroke_color
80-
self.stroke_width = stroke_width
8179
VGroup.__init__(
8280
self,
8381
Line(UP + LEFT, DOWN + RIGHT),
8482
Line(UP + RIGHT, DOWN + LEFT),
8583
)
8684
self.replace(mobject, stretch=True)
87-
self.set_stroke(self.stroke_color, self.stroke_width)
85+
self.set_stroke(color=stroke_color, width=stroke_width)
8886

8987

9088
class Underline(Line):

0 commit comments

Comments
 (0)