mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
resolving minor bug in StreamLines
This commit is contained in:
parent
f4737828f6
commit
6be50b7db2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue