Finalized dandelin project

This commit is contained in:
Grant Sanderson 2018-07-31 19:39:55 -07:00
parent d5b4a8907a
commit 8b737455ce

View file

@ -5,6 +5,43 @@ from active_projects.lost_lecture import Orbiting
from active_projects.lost_lecture import ShowWord
class LogoGeneration(LogoGenerationTemplate):
CONFIG = {
"random_seed": 2,
}
def get_logo_animations(self, logo):
layers = logo.spike_layers
for layer in layers:
random.shuffle(layer.submobjects)
for spike in layer:
spike.save_state()
spike.scale(0.5)
spike.apply_complex_function(np.log)
spike.rotate(-90 * DEGREES, about_point=ORIGIN)
spike.set_fill(opacity=0)
return [
FadeIn(
logo.iris_background,
rate_func=squish_rate_func(smooth, 0.25, 1),
run_time=3,
),
AnimationGroup(*[
LaggedStart(
Restore, layer,
run_time=3,
path_arc=180 * DEGREES,
rate_func=squish_rate_func(smooth, a / 3.0, (a + 0.9) / 3.0),
lag_ratio=0.8,
)
for layer, a in zip(layers, [0, 2, 1, 0])
]),
Animation(logo.pupil),
]
class ThinkingAboutAProof(PiCreatureScene):
def construct(self):
randy = self.pi_creature
@ -1691,10 +1728,10 @@ class DandelinEndScreen(PatreonEndScreen):
"specific_patrons": [
"Juan Benet",
"Matt Russell",
"soekul",
"Soekul",
"Keith Smith",
"Burt Humburg",
"Cryptic Swarm",
"CrypticSwarm",
"Brian Tiger Chow",
"Joseph Kelly",
"Roy Larson",
@ -1763,7 +1800,7 @@ class DandelinEndScreen(PatreonEndScreen):
"supershabam",
"Delton Ding",
"Thomas Tarler",
"1st ViewMaths",
"1stViewMaths",
"Jacob Magnuson",
"Mark Govea",
"Clark Gaebel",