mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
rate_func can no longer be None, must be a function. Use 'linear' instead of None
This commit is contained in:
@ -214,7 +214,7 @@ class PreviewLearning(NetworkScene):
|
||||
VGroup(*layers), VGroup(*active_layers),
|
||||
run_time = run_time,
|
||||
submobject_mode = "lagged_start",
|
||||
rate_func = None,
|
||||
rate_func=linear,
|
||||
)
|
||||
|
||||
self.play(edge_animation, layer_animation, *added_anims)
|
||||
@ -3659,13 +3659,13 @@ class CompareLearningCurves(GraphScene):
|
||||
self.play(ShowCreation(
|
||||
slow_decrease,
|
||||
run_time = 12,
|
||||
rate_func = None,
|
||||
rate_func=linear,
|
||||
))
|
||||
self.play(FadeIn(fast_label), ShowCreation(fast_line))
|
||||
self.play(ShowCreation(
|
||||
faster_decrease,
|
||||
run_time = 12,
|
||||
rate_func = None,
|
||||
rate_func=linear,
|
||||
))
|
||||
self.wait()
|
||||
|
||||
|
Reference in New Issue
Block a user