Files
Jérome Eertmans 0ce4c18519 chore(docs): improving the docs (#115)
* chore(docs): improving the docs

This improves the docs as suggested by some reddit user. Now, most of Manim is documented in one place

* try: update lockfile

* chore(deps): remove duplicate key

* fix(ci): isort issue

See https://github.com/home-assistant/core/issues/86892

* fix(ci): bad identation

* fix(ci): fixing lock file

* fix(example): issue when ManimGL does not count wait as animation
2023-01-30 22:23:53 +01:00

1.7 KiB

Examples

Contents of example.py.

Do not forget to import Manim Slides and Manim or ManimGL.

Basic Example

Basic example from quickstart.

.. literalinclude:: ../../../example.py
   :language: python
   :linenos:
   :pyobject: BasicExample

3D Example

Example using 3D camera. As Manim and ManimGL handle 3D differently, definitions are slightly different.

With Manim

.. literalinclude:: ../../../example.py
   :language: python
   :linenos:
   :dedent: 4
   :start-after: [manim-3d]
   :end-before: [manim-3d]

With ManimGL

.. literalinclude:: ../../../example.py
   :language: python
   :linenos:
   :dedent: 4
   :start-after: [manimgl-3d]
   :end-before: [manimgl-3d]

Advanced Example

A more advanced example is ConvertExample, which is used as demo slide and tutorial.

.. literalinclude:: ../../../example.py
   :language: python
   :linenos:
   :pyobject: ConvertExample