mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
fix example scenes
This commit is contained in:
parent
23662d093f
commit
b8fb69773e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue