mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Filled out making_a_scene overview
This commit is contained in:
parent
d01ca92120
commit
0645bc6acc
1 changed files with 14 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue