somewhat imitate old intro

This commit is contained in:
kleines Filmröllchen 2025-03-18 10:42:51 +01:00
parent 1d391ed2db
commit 629bc5c543
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
2 changed files with 21 additions and 10 deletions

View file

@ -9,7 +9,7 @@ scheduleUrl = "https://cfp.ctbk.de/fsck-2024/schedule/export/schedule.xml"
def introFrames(args):
frames = 2*fps
frames = 1 * fps
for _ in range(0, frames):
yield (
("title", "style", "opacity", 0),
@ -21,9 +21,16 @@ def introFrames(args):
frames = 1 * fps
for i in range(0, frames):
yield (
("title", "style", "opacity", easeInQuad(i, 0, 1, frames)),
("persons", "style", "opacity", easeInQuad(i, 0, 1, frames)),
("glogo", "style", "opacity", 1),
("title", "style", "opacity", easeOutSine(i, 0, 1, frames)),
("persons", "style", "opacity", easeOutSine(i, 0, 1, frames)),
(
"glogo",
"attr",
"transform",
# the easing function cant handle easing from larger to smaller, so use this hacky workaround
f"translate(0,{easeInQuad(frames-i, 0.0, 200.0, frames)})",
),
("glogo", "style", "opacity", easeOutSine(i, 0, 1, frames)),
)
# show whole image for 5 seconds