mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
commit
e85beb91dc
5 changed files with 4149 additions and 7 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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
4134
old_projects/windmill.py
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue