2018-05-10 17:09:53 +02:00
|
|
|
|
2019-05-02 20:36:14 -07:00
|
|
|
from manimlib.imports import *
|
2018-05-10 17:09:53 +02:00
|
|
|
from active_projects.eop.reusable_imports import *
|
|
|
|
|
|
|
|
class RandyThinksAboutCoin(PiCreatureScene):
|
|
|
|
|
|
|
|
def construct(self):
|
|
|
|
|
|
|
|
randy = self.get_primary_pi_creature()
|
|
|
|
randy.center()
|
|
|
|
self.add(randy)
|
|
|
|
self.wait()
|
|
|
|
h_or_t = BinaryOption(UprightHeads().scale(3), UprightTails().scale(3),
|
|
|
|
text_scale = 1.5)
|
|
|
|
self.think(h_or_t, direction = LEFT)
|
|
|
|
|
|
|
|
v = 0.3
|
|
|
|
self.play(
|
|
|
|
h_or_t[0].shift,v*UP,
|
|
|
|
h_or_t[2].shift,v*DOWN,
|
|
|
|
)
|
|
|
|
self.play(
|
|
|
|
h_or_t[0].shift,2*v*DOWN,
|
|
|
|
h_or_t[2].shift,2*v*UP,
|
|
|
|
)
|
|
|
|
self.play(
|
|
|
|
h_or_t[0].shift,v*UP,
|
|
|
|
h_or_t[2].shift,v*DOWN,
|
|
|
|
)
|
|
|
|
|
|
|
|
self.wait()
|