mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-06-17 02:13:47 +08:00
feat(lib): add loop
option to next_slide
and remove start/end_loop
(#294)
* feat(lib): add `loop` option to `next_slide` and remove `start/end_loop` * fix(docs): PR number
This commit is contained in:
@ -26,12 +26,12 @@ class BasicSlide(Slide):
|
||||
|
||||
self.play(FadeIn(square))
|
||||
|
||||
self.next_slide()
|
||||
self.next_slide(loop=True)
|
||||
|
||||
self.start_loop()
|
||||
self.play(Rotate(square, +PI / 2))
|
||||
self.play(Rotate(square, -PI / 2))
|
||||
self.end_loop()
|
||||
|
||||
self.next_slide()
|
||||
|
||||
other_text = Text("Other text")
|
||||
self.wipe([square, circle], [other_text])
|
||||
|
Reference in New Issue
Block a user