mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 05:52:34 +08:00
17 lines
509 B
ReStructuredText
17 lines
509 B
ReStructuredText
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:
|
|
|
|
.. code-block:: python
|
|
:linenos:
|
|
|
|
from manimlib.imports import *
|
|
|
|
class ExampleScene(Scene):
|
|
def construct(self):
|
|
# Add and animate mobjects here |