3b1b-manim/docs/source/getting_started/making_a_scene.rst

15 lines
491 B
ReStructuredText
Raw Normal View History

2019-05-26 00:35:45 -07:00
Making a Scene
==============
2019-07-08 01:13:49 -04:00
A scene is what renders when manim is executed. Each scene contains mobjects, which can then be animated as
2019-07-08 01:18:10 -04:00
previously explained. In code, a scene is a class that extends ``Scene`` and implements the ``construct``
2019-07-08 01:23:04 -04:00
function, like so. Manim will execute this function to render the scene.
2019-07-08 01:13:49 -04:00
.. code-block:: python
:linenos:
from manimlib.imports import *
class ExampleScene(Scene):
def construct(self):
# Add and animate mobjects here