mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Delete align_stroke_width_data_to_points
This commit is contained in:
parent
eba86be35b
commit
5a95bfa70f
2 changed files with 1 additions and 8 deletions
|
@ -215,7 +215,6 @@ class VShowPassingFlash(Animation):
|
||||||
return 1.0
|
return 1.0
|
||||||
|
|
||||||
def begin(self) -> None:
|
def begin(self) -> None:
|
||||||
self.mobject.align_stroke_width_data_to_points()
|
|
||||||
# Compute an array of stroke widths for each submobject
|
# Compute an array of stroke widths for each submobject
|
||||||
# which tapers out at either end
|
# which tapers out at either end
|
||||||
self.submob_to_widths = dict()
|
self.submob_to_widths = dict()
|
||||||
|
@ -262,7 +261,7 @@ class FlashAround(VShowPassingFlash):
|
||||||
stroke_width: float = 4.0,
|
stroke_width: float = 4.0,
|
||||||
color: ManimColor = YELLOW,
|
color: ManimColor = YELLOW,
|
||||||
buff: float = SMALL_BUFF,
|
buff: float = SMALL_BUFF,
|
||||||
n_inserted_curves: int = 20,
|
n_inserted_curves: int = 100,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
path = self.get_path(mobject, buff)
|
path = self.get_path(mobject, buff)
|
||||||
|
|
|
@ -229,12 +229,6 @@ class VMobject(Mobject):
|
||||||
self.set_stroke(color, width, background=background)
|
self.set_stroke(color, width, background=background)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def align_stroke_width_data_to_points(self, recurse: bool = True) -> None:
|
|
||||||
for mob in self.get_family(recurse):
|
|
||||||
mob.data["stroke_width"] = resize_with_interpolation(
|
|
||||||
mob.data["stroke_width"], len(mob.get_points())
|
|
||||||
)
|
|
||||||
|
|
||||||
def set_style(
|
def set_style(
|
||||||
self,
|
self,
|
||||||
fill_color: ManimColor | Iterable[ManimColor] | None = None,
|
fill_color: ManimColor | Iterable[ManimColor] | None = None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue