A community-maintained Python framework for creating mathematical animations.
Small tweaks to old videos when revisiting their animations
Grant Sanderson16f8c025cdb9
diff --git a/from_3b1b/old/clacks/question.py b/from_3b1b/old/clacks/question.pyindex b022c2dd6..84491c5cf 100644--- a/from_3b1b/old/clacks/question.py+++ b/from_3b1b/old/clacks/question.py@@ -325,8 +325,8 @@ class BlocksAndWallScene(Scene):counter_mob = Integer(self.n_clacks)counter_mob.next_to(counter_label[-1], RIGHT,- aligned_edge=DOWN,)+ counter_mob.align_to(counter_label[-1][-1], DOWN)counter_group = VGroup(counter_label,counter_mob,@@ -747,7 +747,7 @@ class BlocksAndWallExampleMass1e2(BlocksAndWallExample):"velocity": -0.6,}},- "wait_time": 25,+ "wait_time": 35,}diff --git a/from_3b1b/old/clacks/solution1.py b/from_3b1b/old/clacks/solution1.pyindex ee679a1b9..010876f6d 100644--- a/from_3b1b/old/clacks/solution1.py+++ b/from_3b1b/old/clacks/solution1.py@@ -1204,6 +1204,8 @@ class CircleDiagramFromSlidingBlocks(Scene):"fill_color": GREEN,"fill_opacity": 0.3,},+ "show_dot": True,+ "show_vector": False,}def construct(self):@@ -1211,6 +1213,9 @@ class CircleDiagramFromSlidingBlocks(Scene):show_flash_animations=False,write_to_movie=False,wait_time=0,+ file_writer_config={+ "output_directory": ".",+ })blocks = sliding_blocks_scene.blockstimes = [pair[1] for pair in blocks.clack_data]@@ -1229,7 +1234,17 @@ class CircleDiagramFromSlidingBlocks(Scene):dot = Dot(color=RED, radius=0.06)dot.move_to(lines[0].get_start())- self.add(end_zone, axes, circle, dot)+ vector = Vector(lines[0].get_start())+ vector.set_color(RED)+ vector.add_updater(lambda v: v.put_start_and_end_on(+ ORIGIN, dot.get_center()+ ))+ vector.set_stroke(BLACK, 2, background=True)++ dot.set_opacity(int(self.show_dot))+ vector.set_opacity(int(self.show_vector))++ self.add(end_zone, axes, circle, dot, vector)last_time = 0for time, line in zip(times, lines):@@ -1238,7 +1253,7 @@ class CircleDiagramFromSlidingBlocks(Scene):self.wait(time - last_time)last_time = timedot.move_to(line.get_end())- self.add(line, dot)+ self.add(line, dot, vector)self.wait()def get_circle(self):diff --git a/from_3b1b/old/spirals.py b/from_3b1b/old/spirals.pyindex 0c67611db..76d2dc70a 100644--- a/from_3b1b/old/spirals.py+++ b/from_3b1b/old/spirals.py@@ -4926,6 +4926,6 @@ class Thumbnail(SpiralScene):label.to_corner(DL, MED_LARGE_BUFF)self.add(dots)- self.add(label)+ # self.add(label)self.dots = dots