mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Merge pull request #1545 from TonyCrane/fix-example-scenes
Fix example scenes
This commit is contained in:
commit
798479536d
9 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -15,7 +15,7 @@ class OpeningManimExample(Scene):
|
||||||
The original motivation for manim was to
|
The original motivation for manim was to
|
||||||
better illustrate mathematical functions
|
better illustrate mathematical functions
|
||||||
as transformations.
|
as transformations.
|
||||||
""")
|
""", lsh=1.5)
|
||||||
intro_words.to_edge(UP)
|
intro_words.to_edge(UP)
|
||||||
|
|
||||||
self.play(Write(intro_words))
|
self.play(Write(intro_words))
|
||||||
|
@ -332,7 +332,7 @@ class UpdatersExample(Scene):
|
||||||
now = self.time
|
now = self.time
|
||||||
w0 = square.get_width()
|
w0 = square.get_width()
|
||||||
square.add_updater(
|
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)
|
self.wait(4 * PI)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue