From 0645bc6accda8e9cfc9b8a37bbe701fc105d1683 Mon Sep 17 00:00:00 2001 From: Nathan Petrangelo Date: Mon, 8 Jul 2019 01:13:49 -0400 Subject: [PATCH 1/4] Filled out making_a_scene overview --- docs/source/getting_started/making_a_scene.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/source/getting_started/making_a_scene.rst b/docs/source/getting_started/making_a_scene.rst index 3fe9fc32..d3c6be36 100644 --- a/docs/source/getting_started/making_a_scene.rst +++ b/docs/source/getting_started/making_a_scene.rst @@ -1,4 +1,17 @@ Making a Scene ============== -Talk about Scenes and organization, bring it all together. +To make a scene, jump on the table and do a dance. Oh, a manim scene? Alright. + +A scene is what renders when manim is executed. Each scene contains mobjects, which can then be animated as +previously explained. In code, a scene is a class that extends Scene and implements the construct +function, like so: + +.. code-block:: python + :linenos: + + from manimlib.imports import * + + class ExampleScene(Scene): + def construct(self): + # Add and animate mobjects here \ No newline at end of file From e5d7ebd978f86e231ae84eb6d2ed656e1ccc2a40 Mon Sep 17 00:00:00 2001 From: Nathan Petrangelo Date: Mon, 8 Jul 2019 01:18:10 -0400 Subject: [PATCH 2/4] Added code formatting --- docs/source/getting_started/making_a_scene.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/getting_started/making_a_scene.rst b/docs/source/getting_started/making_a_scene.rst index d3c6be36..761454e0 100644 --- a/docs/source/getting_started/making_a_scene.rst +++ b/docs/source/getting_started/making_a_scene.rst @@ -4,7 +4,7 @@ Making a Scene To make a scene, jump on the table and do a dance. Oh, a manim scene? Alright. A scene is what renders when manim is executed. Each scene contains mobjects, which can then be animated as -previously explained. In code, a scene is a class that extends Scene and implements the construct +previously explained. In code, a scene is a class that extends ``Scene`` and implements the ``construct`` function, like so: .. code-block:: python From c60dd05e33dd682d60b44be21a604c8c42582304 Mon Sep 17 00:00:00 2001 From: Nathan Petrangelo Date: Mon, 8 Jul 2019 01:23:04 -0400 Subject: [PATCH 3/4] Added one more sentence --- docs/source/getting_started/making_a_scene.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/getting_started/making_a_scene.rst b/docs/source/getting_started/making_a_scene.rst index 761454e0..26ea3a98 100644 --- a/docs/source/getting_started/making_a_scene.rst +++ b/docs/source/getting_started/making_a_scene.rst @@ -5,7 +5,7 @@ To make a scene, jump on the table and do a dance. Oh, a manim scene? Alright. A scene is what renders when manim is executed. Each scene contains mobjects, which can then be animated as previously explained. In code, a scene is a class that extends ``Scene`` and implements the ``construct`` -function, like so: +function, like so. Manim will execute this function to render the scene. .. code-block:: python :linenos: From 612158277e823ccb4425c36e387f989b53c799ca Mon Sep 17 00:00:00 2001 From: Nathan Petrangelo Date: Mon, 8 Jul 2019 01:33:07 -0400 Subject: [PATCH 4/4] Removed the joke --- docs/source/getting_started/making_a_scene.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/source/getting_started/making_a_scene.rst b/docs/source/getting_started/making_a_scene.rst index 26ea3a98..619cb571 100644 --- a/docs/source/getting_started/making_a_scene.rst +++ b/docs/source/getting_started/making_a_scene.rst @@ -1,8 +1,6 @@ Making a Scene ============== -To make a scene, jump on the table and do a dance. Oh, a manim scene? Alright. - A scene is what renders when manim is executed. Each scene contains mobjects, which can then be animated as previously explained. In code, a scene is a class that extends ``Scene`` and implements the ``construct`` function, like so. Manim will execute this function to render the scene.