3b1b-manim/active_projects/eop/reusables/sick_pi_creature.py

22 lines
433 B
Python
Raw Normal View History

2018-05-03 17:48:09 +02:00
from for_3b1b_videos.pi_creature import *
from active_projects.eop.reusables.constants import *
class SicklyPiCreature(PiCreature):
CONFIG = {
"sick_color": SICKLY_GREEN
}
def get_slightly_sick(self):
self.save_state()
self.set_color(self.sick_color)
def get_sick(self):
self.get_slightly_sick()
self.change_mode("sick")
def get_better(self):
self.restore()