From 25bab8c10e6da99bbb3bd8e073bc62c19cd4e134 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 24 Nov 2020 13:31:32 -0800 Subject: [PATCH] Final edits to hamming video --- from_3b1b/active/hamming.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/from_3b1b/active/hamming.py b/from_3b1b/active/hamming.py index 4b40c9f7..97402852 100644 --- a/from_3b1b/active/hamming.py +++ b/from_3b1b/active/hamming.py @@ -6081,11 +6081,16 @@ class HammingThinking(Scene): class RandomWalks(Scene): + CONFIG = { + "random_seed": 1, + } + def construct(self): # Setup - N_PATHS = 50 + N_PATHS = 25 frame = self.camera.frame frame.set_height(2 * FRAME_HEIGHT) + frame.shift(2 * RIGHT) idea_spot = 10 * RIGHT + 3 * UP idea_dot = Dot(idea_spot) @@ -6107,10 +6112,11 @@ class RandomWalks(Scene): path_dots = VGroup() for path in paths: - dot = Randolph( - mode="thinking", height=0.25, - # color=random.choice([BLUE_B, BLUE_C, BLUE_D, GREY_BROWN]) - ) + # dot = Randolph( + # mode="thinking", height=0.25, + # # color=random.choice([BLUE_B, BLUE_C, BLUE_D, GREY_BROWN]) + # ) + dot = Dot(color=BLUE) dot.set_stroke(BLACK, 3, background=True) dot.path = path dot.add_updater(lambda m: m.move_to(m.path[-1].get_end())) @@ -6181,7 +6187,7 @@ class RandomWalks(Scene): paths.fade, 0.5, path_dots.fade, 0.5, ) - self.wait() + self.wait(4) class ThinkingInTermsOfBits(Scene):