mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Added example_scenes.py to make things slightly less unfriendly
This commit is contained in:
parent
7147233e81
commit
e6f7ba027c
2 changed files with 44 additions and 0 deletions
42
example_scenes.py
Normal file
42
example_scenes.py
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from helpers import *
|
||||
|
||||
from mobject.tex_mobject import TexMobject
|
||||
from mobject import Mobject
|
||||
from mobject.image_mobject import ImageMobject
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
from animation.animation import Animation
|
||||
from animation.transform import *
|
||||
from animation.simple_animations import *
|
||||
from animation.playground import *
|
||||
from topics.geometry import *
|
||||
from topics.characters import *
|
||||
from topics.functions import *
|
||||
from topics.number_line import *
|
||||
from topics.combinatorics import *
|
||||
from scene import Scene
|
||||
from camera import Camera
|
||||
from mobject.svg_mobject import *
|
||||
from mobject.tex_mobject import *
|
||||
|
||||
from mobject.vectorized_mobject import *
|
||||
|
||||
|
||||
## To watch one of these scenes, run the following:
|
||||
## python extract_scene.py -p <SceneName>
|
||||
|
||||
class SquareToCircle(Scene):
|
||||
def construct(self):
|
||||
circle = Circle()
|
||||
square = Square()
|
||||
self.play(ShowCreation(square))
|
||||
self.play(Transform(square, circle))
|
||||
self.dither()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -9,6 +9,8 @@ from scene import Scene
|
|||
|
||||
from helpers import *
|
||||
|
||||
## Warning, much of what is in this class
|
||||
## likely not supported anymore.
|
||||
|
||||
class LogoGeneration(Scene):
|
||||
CONFIG = {
|
||||
|
|
Loading…
Add table
Reference in a new issue