somewhat finalized intro

This commit is contained in:
kleines Filmröllchen 2025-04-15 23:38:30 +02:00
parent 47fe8657dd
commit be59f3ad69
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
5 changed files with 401 additions and 22 deletions

View file

@ -19,13 +19,13 @@ def introFrames(args):
)
# fade in logo
frames = 1 * fps
frames = 3 * fps
for i in range(0, frames):
# source: matrix(0.66093871,0,0,0.66093871,325.49887,111.96043)
# target: matrix(1, 0, 0, 1, 0, 0)
size = 0.66 + easeInOutSine(i, 0.0, 1.0 - 0.66, frames)
posx = easeInOutSine(frames - i, 0.0, 325.49887, frames)
posy = easeInOutSine(frames - i, 0.0, 111.96043, frames)
size = 0.66 + easeInOutQuad(i, 0.0, 1.0 - 0.66, frames)
posx = easeInOutQuad(frames - i, 0.0, 325.49887, frames)
posy = easeInOutQuad(frames - i, 0.0, 111.96043, frames)
yield (
(
"glogo",
@ -34,7 +34,7 @@ def introFrames(args):
# 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)),
("glogo", "style", "opacity", easeOutQuad(i, 0, 1, frames)),
# scale in the fsck text banner behind the foreground elements
# target size is 5.414656 in both x and y
(
@ -58,18 +58,18 @@ def introFrames(args):
)
# fade in title and persons
frames = 2 * fps
frames = 3 * fps
intermediate = (frames * 1) // 3
for i in range(0, intermediate):
yield (
("title", "style", "opacity", easeOutSine(i, 0, 1, frames)),
("title", "style", "opacity", easeOutQuad(i, 0, 1, frames)),
("persons", "style", "opacity", 0),
("glogo", "style", "opacity", 1),
(
"sparkle",
"style",
"opacity",
easeOutSine(min(i * 2, intermediate), 0, 1, intermediate),
easeOutQuad(min(i * 2, intermediate), 0, 1, intermediate),
),
(
"sparkle",
@ -80,19 +80,19 @@ def introFrames(args):
)
for i in range(intermediate, frames):
yield (
("title", "style", "opacity", easeOutSine(i, 0, 1, frames)),
("title", "style", "opacity", easeOutQuad(i, 0, 1, frames)),
(
"persons",
"style",
"opacity",
easeOutSine(i - intermediate, 0, 1, frames - intermediate),
easeOutQuad(i - intermediate, 0, 1, frames - intermediate),
),
("glogo", "style", "opacity", 1),
(
"sparkle",
"style",
"opacity",
easeInSine(
easeInQuad(
i - intermediate,
1,
-1,