Flash did not use stroke_width

This commit is contained in:
Grant Sanderson 2020-03-07 20:53:48 -08:00
parent 2c80b6f62d
commit 5a780dfde3

View file

@ -94,8 +94,10 @@ class Flash(AnimationGroup):
line.shift((self.flash_radius - self.line_length) * RIGHT)
line.rotate(angle, about_point=ORIGIN)
lines.add(line)
lines.set_color(self.color)
lines.set_stroke(width=3)
lines.set_stroke(
color=self.color,
width=self.line_stroke_width
)
lines.add_updater(lambda l: l.move_to(self.point))
return lines