Merge pull request #710 from 3b1b/windmill

Windmill
This commit is contained in:
Grant Sanderson 2019-08-27 19:07:23 -07:00 committed by GitHub
commit e85beb91dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4149 additions and 7 deletions

View file

@ -372,7 +372,7 @@ class FourierOfPiSymbol(FourierCirclesScene):
return path return path
class FourierOfName(FourierOfPiSymbol): class FourierOfName(FourierOfPiSymbol, MovingCameraScene):
CONFIG = { CONFIG = {
"n_vectors": 100, "n_vectors": 100,
"name_color": WHITE, "name_color": WHITE,
@ -390,6 +390,9 @@ class FourierOfName(FourierOfPiSymbol):
if name.get_height() > max_height: if name.get_height() > max_height:
name.set_height(max_height) name.set_height(max_height)
frame = self.camera.frame
frame.save_state()
vectors = VGroup(VectorizedPoint()) vectors = VGroup(VectorizedPoint())
circles = VGroup(VectorizedPoint()) circles = VGroup(VectorizedPoint())
for path in name.family_members_with_points(): for path in name.family_members_with_points():
@ -416,6 +419,8 @@ class FourierOfName(FourierOfPiSymbol):
self.play( self.play(
Transform(vectors, static_vectors, remover=True), Transform(vectors, static_vectors, remover=True),
Transform(circles, static_circles, remover=True), Transform(circles, static_circles, remover=True),
frame.set_height, 1.5 * name.get_height(),
frame.move_to, path,
) )
self.add(new_vectors, new_circles) self.add(new_vectors, new_circles)
@ -431,7 +436,9 @@ class FourierOfName(FourierOfPiSymbol):
vectors = static_vectors vectors = static_vectors
circles = static_circles circles = static_circles
self.play( self.play(
FadeOut(vectors) FadeOut(vectors),
Restore(frame),
run_time=2
) )
self.wait(3) self.wait(3)

View file

@ -154,7 +154,8 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
"randomize_order": True, "randomize_order": True,
"capitalize": True, "capitalize": True,
"name_y_spacing": 0.7, "name_y_spacing": 0.7,
"thanks_words": "Funded by the community, with special thanks to:", # "thanks_words": "Funded by the community, with special thanks to:",
"thanks_words": "Early access, name in credits and more at 3b1b.org/support",
} }
def construct(self): def construct(self):

View file

@ -2760,7 +2760,7 @@ class Thumbnail(AlternateAreaUnderCurve):
CONFIG = { CONFIG = {
"x_axis_label" : "", "x_axis_label" : "",
"y_axis_label" : "", "y_axis_label" : "",
"graph_origin" : 2.4*DOWN + 3*LEFT, "graph_origin" : 2.4 * DOWN + 3 * LEFT,
} }
def construct(self): def construct(self):
self.setup_axes() self.setup_axes()
@ -2775,8 +2775,8 @@ class Thumbnail(AlternateAreaUnderCurve):
start_color = BLUE_E, start_color = BLUE_E,
) )
words = TextMobject(""" words = TextMobject("""
Essence of Could \\emph{you} invent
calculus calculus?
""") """)
words.set_width(9) words.set_width(9)
words.to_edge(UP) words.to_edge(UP)

4134
old_projects/windmill.py Normal file

File diff suppressed because it is too large Load diff

View file

@ -45,7 +45,7 @@ def stage_scenes(module_name):
animation_dir = os.path.join( animation_dir = os.path.join(
os.path.expanduser('~'), os.path.expanduser('~'),
"Dropbox (3Blue1Brown)/3Blue1Brown Team Folder/videos", "Dropbox (3Blue1Brown)/3Blue1Brown Team Folder/videos",
"diffyq", "part5", "1440p60" "windmill", "1440p60"
) )
# #
files = os.listdir(animation_dir) files = os.listdir(animation_dir)