mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
18 lines
523 B
Python
18 lines
523 B
Python
from manimlib.constants import *
|
|
from manimlib.for_3b1b_videos.pi_creature import PiCreature
|
|
from manimlib.mobject.types.vectorized_mobject import VGroup
|
|
|
|
|
|
class PiCreatureClass(VGroup):
|
|
CONFIG = {
|
|
"width": 3,
|
|
"height": 2
|
|
}
|
|
|
|
def __init__(self, **kwargs):
|
|
VGroup.__init__(self, **kwargs)
|
|
for i in range(self.width):
|
|
for j in range(self.height):
|
|
pi = PiCreature().scale(0.3)
|
|
pi.move_to(i * DOWN + j * RIGHT)
|
|
self.add(pi)
|