Skip to content

Commit e85beb9

Browse files
authored
Merge pull request 3b1b#710 from 3b1b/windmill
Windmill
2 parents b74e5ca + 2f2ef09 commit e85beb9

File tree

5 files changed

+4149
-7
lines changed

5 files changed

+4149
-7
lines changed

active_projects/diffyq/part2/fourier_series.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def get_path(self):
372372
return path
373373

374374

375-
class FourierOfName(FourierOfPiSymbol):
375+
class FourierOfName(FourierOfPiSymbol, MovingCameraScene):
376376
CONFIG = {
377377
"n_vectors": 100,
378378
"name_color": WHITE,
@@ -390,6 +390,9 @@ def construct(self):
390390
if name.get_height() > max_height:
391391
name.set_height(max_height)
392392

393+
frame = self.camera.frame
394+
frame.save_state()
395+
393396
vectors = VGroup(VectorizedPoint())
394397
circles = VGroup(VectorizedPoint())
395398
for path in name.family_members_with_points():
@@ -416,6 +419,8 @@ def construct(self):
416419
self.play(
417420
Transform(vectors, static_vectors, remover=True),
418421
Transform(circles, static_circles, remover=True),
422+
frame.set_height, 1.5 * name.get_height(),
423+
frame.move_to, path,
419424
)
420425

421426
self.add(new_vectors, new_circles)
@@ -431,7 +436,9 @@ def construct(self):
431436
vectors = static_vectors
432437
circles = static_circles
433438
self.play(
434-
FadeOut(vectors)
439+
FadeOut(vectors),
440+
Restore(frame),
441+
run_time=2
435442
)
436443
self.wait(3)
437444

manimlib/for_3b1b_videos/common_scenes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
154154
"randomize_order": True,
155155
"capitalize": True,
156156
"name_y_spacing": 0.7,
157-
"thanks_words": "Funded by the community, with special thanks to:",
157+
# "thanks_words": "Funded by the community, with special thanks to:",
158+
"thanks_words": "Early access, name in credits and more at 3b1b.org/support",
158159
}
159160

160161
def construct(self):

old_projects/eoc/chapter1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ class Thumbnail(AlternateAreaUnderCurve):
27602760
CONFIG = {
27612761
"x_axis_label" : "",
27622762
"y_axis_label" : "",
2763-
"graph_origin" : 2.4*DOWN + 3*LEFT,
2763+
"graph_origin" : 2.4 * DOWN + 3 * LEFT,
27642764
}
27652765
def construct(self):
27662766
self.setup_axes()
@@ -2775,8 +2775,8 @@ def construct(self):
27752775
start_color = BLUE_E,
27762776
)
27772777
words = TextMobject("""
2778-
Essence of
2779-
calculus
2778+
Could \\emph{you} invent
2779+
calculus?
27802780
""")
27812781
words.set_width(9)
27822782
words.to_edge(UP)

0 commit comments

Comments
 (0)