mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Merge pull request #622 from npetrangelo/docs
Filled out making_a_scene in the docs
This commit is contained in:
commit
b31a174ac6
1 changed files with 12 additions and 1 deletions
|
@ -1,4 +1,15 @@
|
|||
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
|
Loading…
Add table
Reference in a new issue