Merge pull request #622 from npetrangelo/docs

Filled out making_a_scene in the docs
This commit is contained in:
Devin Neal 2019-07-07 22:42:08 -07:00 committed by GitHub
commit b31a174ac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,15 @@
Making a Scene Making a Scene
============== ==============
Talk about Scenes and organization, bring it all together. 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.
.. code-block:: python
:linenos:
from manimlib.imports import *
class ExampleScene(Scene):
def construct(self):
# Add and animate mobjects here