mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 10:47:44 +00:00
Replace np.clip with clip
This commit is contained in:
parent
6b69ed2174
commit
8f8119509d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import inspect
|
||||
import numpy as np
|
||||
|
||||
from manimlib.constants import DEGREES
|
||||
from manimlib.constants import RIGHT
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
from manimlib.utils.simple_functions import clip
|
||||
|
||||
|
||||
def assert_is_mobject_method(method):
|
||||
|
|
@ -81,7 +81,7 @@ def turn_animation_into_updater(animation, cycle=False, **kwargs):
|
|||
if cycle:
|
||||
alpha = time_ratio % 1
|
||||
else:
|
||||
alpha = np.clip(time_ratio, 0, 1)
|
||||
alpha = clip(time_ratio, 0, 1)
|
||||
if alpha >= 1:
|
||||
animation.finish()
|
||||
m.remove_updater(update)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue