mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
23 lines
560 B
Python
23 lines
560 B
Python
import warnings
|
|
|
|
import numpy as np
|
|
|
|
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)
|
|
|
|
|