2018-05-08 23:55:47 +02:00
|
|
|
import warnings
|
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
import numpy as np
|
2018-05-08 23:55:47 +02:00
|
|
|
|
2018-12-24 12:37:51 -08:00
|
|
|
from manimlib.constants import *
|
|
|
|
from manimlib.for_3b1b_videos.pi_creature import PiCreature
|
|
|
|
from manimlib.mobject.types.vectorized_mobject import VGroup
|
2018-05-08 13:23:24 +02:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|