A community-maintained Python framework for creating mathematical animations.
Improve Example (#2619)
ad_chaosc9fe05cd5eb4
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex b2ababb99..63869698a 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -2221,11 +2221,9 @@ class Mobject:class ArrangeInGrid(Scene):def construct(self):- #Add some numbered boxes:- np.random.seed(3)boxes = VGroup(*[- Rectangle(WHITE, np.random.random()+.5, np.random.random()+.5).add(Text(str(i+1)).scale(0.5))- for i in range(22)+ Rectangle(WHITE, 0.5, 0.5).add(Text(str(i+1)).scale(0.5))+ for i in range(24)])self.add(boxes)@@ -2233,7 +2231,8 @@ class Mobject:buff=(0.25,0.5),col_alignments="lccccr",row_alignments="uccd",- col_widths=[2, *[None]*4, 2],+ col_widths=[1, *[None]*4, 1],+ row_heights=[1, None, None, 1],flow_order="dr")