"""The teaser, forty seconds of the song: the cold open, straight into the first chorus, and the logo on the outro's hit.""" from cut import Logo, Type from looks import BAR, GOLD, HOT, LOGO, PLAY, ROLLS, SPACE, clip, runner # noqa: F401 KEEP = [(2.2, 15.33), (22.9, 38.23), (159.0, 170.0)] PUNCH, SHAKE, ABERRATE = 0.016, 4.0, 1.8 SHOTS = [] run = runner(SHOTS) run(2.2, (5.3, "o_space_k", {"speed": 1.5, "zoom": (1.0, 1.04), "grade": SPACE}), (4.1, "o_dive", {"start": 0.9, "speed": 0.9, "grade": GOLD, "into": "whip"}), (1.8, "o_skim", {"start": 2.2, "speed": 1.35, "grade": GOLD, "into": "whip"}), (0, "o_giant", {"start": 0.6, "speed": 0.7, "grade": GOLD}), until=15.33) run(22.9, (2.1, "c_swing_s", {"rate": 120, "start": 1.2, "speed": 0.5, "grade": HOT}), (BAR, "g_scythe", {"start": 1.0, "grade": PLAY}), (BAR, "c_combine_over", {"start": 1.34, "grade": HOT}), (BAR, "v_sixteen", {"start": 1.2, "grade": HOT}), (BAR, "k_grow", {"start": 3.0, "speed": 1.6, "grade": HOT}), (BAR, "f_air", {"start": 0.6, "grade": HOT}), (BAR, "c_top", {"start": 1.2, "grade": HOT}), (0, "e_cut_k", {"start": 2.0, "speed": 2.6, "zoom": (1.0, 1.05), "grade": {"sat": 1.1, "contrast": 1.08, "tint": (0, 0, 0)}}), until=38.23) run(159.0, (0, "e_up", {"start": 0.2, "speed": 0.48, "zoom": (1.02, 1.08), "grade": {"sat": 1.2, "contrast": 1.12}}), until=170.0) FLASH = [(22.9, 0.5), (159.0, 0.7)] def REACT(t): return 0.25 if t < 22.9 else 0.6 if t < 38.3 else 0.4 def BLACK(t): if t < 2.7: return 1 - (t - 2.2) / 0.5 if t > 168.6: return min(1.0, (t - 168.6) / 1.2) return 0.0 TYPE = [ Type("EARTH HAS RUN OUT OF GRASS", 5.0, 8.4, 84, y=0.2, how="rise"), Type("THIS PLANET HAS TOO MUCH", 9.0, 12.4, 84, y=0.2, how="rise"), Type("HERBARIA-7", 12.6, 15.3, 150, y=0.5, how="rise"), Type("MOW IT!", 23.0, 24.95, 210, y=0.74, how="slam"), Type("UP TO 16 PLAYERS", 28.74, 30.5, 120, y=0.8, how="slam"), Type("BUILD IT", 30.6, 32.4, 150, y=0.8, how="slam"), Type("DRIVE IT", 32.47, 34.3, 150, y=0.8, how="slam"), Type("THE WHOLE PLANET", 36.2, 38.2, 150, how="slam"), Type("WISHLIST NOW ON STEAM", 161.0, 170.0, 76, y=0.76, how="rise"), Type("CO-OP FOR 1 TO 16 PLAYERS", 162.0, 170.0, 50, y=0.85, how="rise", colour=(226, 240, 200)), Logo(LOGO, 159.0, 170.0, 1180, 0.4), ] SFX = [(22.9, clip("scythe_swing_1"), 0.5), (159.0, clip("confetti"), 0.7)]