feat(lib): remove constraint on last animation and update readme (#117)

This removes the constraint that required a Slide class to end with a animation. This was actually not needed, and could lead to confusion since `self.wait` is not an animation with ManimGL, but well with Manim.

This fix, however, still means that a calls to `self.wait` with ManimGL, after last `self.pause` call, will be ignored.
This commit is contained in:
Jérome Eertmans
2023-01-31 10:07:59 +01:00
committed by GitHub
parent 70b5ee39c3
commit e9d28dc0a8
3 changed files with 6 additions and 18 deletions

View File

@ -31,10 +31,6 @@ class BasicExample(Slide):
self.play(dot.animate.move_to(ORIGIN))
self.pause() # Waits user to press continue to go to the next slide
# Each slide MUST end with an animation
# -> self.wait is considered an animation with Manim, not ManimGL
self.play(dot.animate.move_to(LEFT))
class ConvertExample(Slide):
"""WARNING: this example does not seem to work with ManimGL."""