resolving minor bug in StreamLines

This commit is contained in:
Varniex 2025-04-04 20:43:17 +05:30
parent f4737828f6
commit 6be50b7db2

View file

@ -422,7 +422,7 @@ class StreamLines(VGroup):
cs = self.coordinate_system
for line in self.submobjects:
norms = [
get_norm(self.func(*cs.p2c(point)))
get_norm(self.func(cs.p2c(point)))
for point in line.get_points()
]
rgbs = values_to_rgbs(norms)
@ -467,7 +467,7 @@ class AnimatedStreamLines(VGroup):
self.add_updater(lambda m, dt: m.update(dt))
def update(self, dt: float) -> None:
def update(self, dt: float = 0) -> None:
stream_lines = self.stream_lines
for line in stream_lines:
line.time += dt