Merge pull request #1545 from TonyCrane/fix-example-scenes

Fix example scenes
This commit is contained in:
Grant Sanderson 2021-06-15 11:16:37 -07:00 committed by GitHub
commit 798479536d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class OpeningManimExample(Scene):
The original motivation for manim was to
better illustrate mathematical functions
as transformations.
""")
""", lsh=1.5)
intro_words.to_edge(UP)
self.play(Write(intro_words))
@ -332,7 +332,7 @@ class UpdatersExample(Scene):
now = self.time
w0 = square.get_width()
square.add_updater(
lambda m: m.set_width(w0 * math.cos(self.time - now))
lambda m: m.set_width(w0 * math.sin(self.time - now) + w0)
)
self.wait(4 * PI)