rate_func can no longer be None, must be a function. Use 'linear' instead of None

This commit is contained in:
Grant Sanderson
2019-02-05 15:39:58 -08:00
parent dcb7dc8a1d
commit b7cf5e82e3
58 changed files with 160 additions and 149 deletions

View File

@ -352,7 +352,7 @@ class GraphCarTrajectory(GraphScene):
self.play(
ShowCreation(
graph,
rate_func = None,
rate_func=linear,
),
MoveCar(
car, car_target,
@ -2114,7 +2114,7 @@ class ParadoxAtTEquals0(TCubedExample):
car, car_target_point,
rate_func = lambda t : (t*graph_x_max)**3
),
ShowCreation(graph, rate_func = None),
ShowCreation(graph, rate_func=linear),
UpdateFromFunc(h_line, h_line_update),
UpdateFromFunc(v_line, v_line_update),
run_time = 5