mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Minor improvements to vibrating string, plus copy method to animation
This commit is contained in:
@ -6,6 +6,7 @@ import time
|
||||
import os
|
||||
import progressbar
|
||||
import inspect
|
||||
from copy import deepcopy
|
||||
|
||||
from helpers import *
|
||||
from mobject import Mobject
|
||||
@ -30,6 +31,9 @@ class Animation(object):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def copy(self):
|
||||
return deepcopy(self)
|
||||
|
||||
def update(self, alpha):
|
||||
if alpha < 0:
|
||||
alpha = 0.0
|
||||
|
Reference in New Issue
Block a user