mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Get rid of ContinualMovement, replace with always_shift
This commit is contained in:
@ -48,7 +48,8 @@ class ShowSimpleMultivariableFunction(Scene):
|
||||
decimal.scale(scale_val)
|
||||
decimal.next_to(tex, RIGHT)
|
||||
value_tracker = ValueTracker(0)
|
||||
self.add(ContinualMovement(value_tracker, rate=0.5))
|
||||
always_shift(value_tracker, rate=0.5)
|
||||
self.add(value_tracker)
|
||||
decimal_change = ContinualChangingDecimal(
|
||||
decimal,
|
||||
lambda a: 1 + np.sin(value_tracker.get_value())
|
||||
|
Reference in New Issue
Block a user