Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Reformatting examples

Mysaa83a2acdaa657
diff --git a/docs/source/examples/animations.rst b/docs/source/examples/animations.rst
index 4ab3c7b8d..9ba7123a4 100644
--- a/docs/source/examples/animations.rst
+++ b/docs/source/examples/animations.rst
@@ -111,24 +111,22 @@ Updaters
.. manim:: PlaneFadeOut
class PlaneFadeOut(Scene):
-
def construct(self):
-
- sq2= Square()
-
- sq1= Square()
- sq1.next_to(sq2,LEFT)
-
- sq3= Square()
- sq3.next_to(sq2,RIGHT)
-
+ sq2 = Square()
+
+ sq1 = Square()
+ sq1.next_to(sq2, LEFT)
+
+ sq3 = Square()
+ sq3.next_to(sq2, RIGHT)
+
circ = Circle()
- circ.next_to(sq2,DOWN)
-
- self.add(sq1,sq2,sq3,circ)
+ circ.next_to(sq2, DOWN)
+
+ self.add(sq1, sq2, sq3, circ)
self.wait()
-
- self.play(FadeOut(sq1),FadeOut(sq2),FadeOut(sq3))
+
+ self.play(FadeOut(sq1), FadeOut(sq2), FadeOut(sq3))
self.wait()
.. manim:: FadeInAndOut
@@ -145,4 +143,3 @@ Updaters
self.add(annotation)
self.play(FadeOut(square))
-