Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Tiny cleanup

Grant Sandersone1390692bef9
diff --git a/scene/scene.py b/scene/scene.py
index 9171a45d0..768696223 100644
--- a/scene/scene.py
+++ b/scene/scene.py
@@ -457,6 +457,17 @@ class Scene(Container):
return self
+ def wait_to(self, time, assert_positive = True):
+ if self.ignore_waits:
+ return
+ time -= self.current_scene_time
+ if assert_positive:
+ assert(time >= 0)
+ elif time < 0:
+ return
+
+ self.wait(time)
+
def force_skipping(self):
self.original_skipping_status = self.skip_animations
self.skip_animations = True
@@ -554,11 +565,3 @@ class Scene(Container):
shutil.move(*self.args_to_rename_file)
else:
os.rename(*self.args_to_rename_file)
-
- def wait_to(self, time, assert_positive = True):
- if self.ignore_waits: return
- time -= self.current_scene_time
- if assert_positive: assert(time >= 0)
- elif time < 0: return
-
- self.dither(time)
diff --git a/topics/objects.py b/topics/objects.py
index e5e8a6025..a91c2b339 100644
--- a/topics/objects.py
+++ b/topics/objects.py
@@ -7,7 +7,7 @@ from mobject.tex_mobject import TextMobject, TexMobject
from animation import Animation
from animation.simple_animations import Rotating, LaggedStart
-from animation.transform import ApplyMethod
+from animation.transform import ApplyMethod, FadeIn, GrowFromCenter
from topics.geometry import Circle, Line, Rectangle, Square, \
Arc, Polygon, SurroundingRectangle