mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
experimental changes to old Pascal's triangle code
This commit is contained in:
parent
7eceefb95a
commit
6f43be49bf
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
from big_ol_pile_of_manim_imports import *
|
from big_ol_pile_of_manim_imports import *
|
||||||
|
from once_useful_constructs.combinatorics import *
|
||||||
|
|
||||||
nb_levels = 50
|
nb_levels = 50
|
||||||
|
|
||||||
|
@ -13,11 +14,18 @@ def rainbow_color(alpha):
|
||||||
return rainbow[index]
|
return rainbow[index]
|
||||||
|
|
||||||
|
|
||||||
|
class SampleScene(Scene):
|
||||||
|
|
||||||
|
def construct(self):
|
||||||
|
|
||||||
|
triangle = Polygon()
|
||||||
|
self.add(triangle)
|
||||||
|
self.wait()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PascalScene(Scene):
|
class PascalNetScene(Scene):
|
||||||
|
|
||||||
def construct(self):
|
def construct(self):
|
||||||
|
|
||||||
|
@ -71,7 +79,7 @@ class PascalScene(Scene):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class RescaledPascalScene(Scene):
|
class RescaledPascalNetScene(Scene):
|
||||||
|
|
||||||
def construct(self):
|
def construct(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue