mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 10:27:46 +00:00
Use rate_function appropriately in ShowIncreasingSubsets
This commit is contained in:
parent
7ff45b4637
commit
7954ba14ef
1 changed files with 1 additions and 0 deletions
|
|
@ -190,6 +190,7 @@ class ShowIncreasingSubsets(Animation):
|
|||
|
||||
def interpolate_mobject(self, alpha: float) -> None:
|
||||
n_submobs = len(self.all_submobs)
|
||||
alpha = self.rate_func(alpha)
|
||||
index = int(self.int_func(alpha * n_submobs))
|
||||
self.update_submobject_list(index)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue