somewhat finished version

This commit is contained in:
kleines Filmröllchen 2025-04-15 23:11:19 +02:00
parent a47785d6d9
commit 47fe8657dd
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
2 changed files with 54 additions and 41 deletions

View file

@ -19,34 +19,34 @@ def introFrames(args):
) )
# fade in logo # fade in logo
# frames = 1 * fps frames = 1 * fps
# for i in range(0, frames): for i in range(0, frames):
# # source: matrix(0.66093871,0,0,0.66093871,325.49887,111.96043) # source: matrix(0.66093871,0,0,0.66093871,325.49887,111.96043)
# # target: matrix(1, 0, 0, 1, 0, 0) # target: matrix(1, 0, 0, 1, 0, 0)
# size = 0.66 + easeInOutSine(i, 0.0, 1.0 - 0.66, frames) size = 0.66 + easeInOutSine(i, 0.0, 1.0 - 0.66, frames)
# posx = easeInOutSine(frames - i, 0.0, 325.49887, frames) posx = easeInOutSine(frames - i, 0.0, 325.49887, frames)
# posy = easeInOutSine(frames - i, 0.0, 111.96043, frames) posy = easeInOutSine(frames - i, 0.0, 111.96043, frames)
# yield ( yield (
# ( (
# "glogo", "glogo",
# "attr", "attr",
# "transform", "transform",
# # the easing function cant handle easing from larger to smaller, so use this hacky workaround # 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)})", f"translate(0,{easeInQuad(frames - i, 0.0, 200.0, frames)})",
# ), ),
# ("glogo", "style", "opacity", easeOutSine(i, 0, 1, frames)), ("glogo", "style", "opacity", easeOutSine(i, 0, 1, frames)),
# # scale in the fsck text banner behind the foreground elements # scale in the fsck text banner behind the foreground elements
# # target size is 5.414656 in both x and y # target size is 5.414656 in both x and y
# ( (
# "fsck-banner", "fsck-banner",
# "attr", "attr",
# "transform", "transform",
# f"matrix({size:.4f},0,0,{size:.4f},{posx:.4f},{posy:.4f})", f"matrix({size:.4f},0,0,{size:.4f},{posx:.4f},{posy:.4f})",
# ), ),
# ("title", "style", "opacity", 0), ("title", "style", "opacity", 0),
# ("persons", "style", "opacity", 0), ("persons", "style", "opacity", 0),
# ("sparkle", "style", "opacity", 0), ("sparkle", "style", "opacity", 0),
# ) )
frames = 1 * fps frames = 1 * fps
for i in range(0, frames): for i in range(0, frames):
@ -71,6 +71,12 @@ def introFrames(args):
"opacity", "opacity",
easeOutSine(min(i * 2, intermediate), 0, 1, intermediate), easeOutSine(min(i * 2, intermediate), 0, 1, intermediate),
), ),
(
"sparkle",
"attr",
"transform",
f"translate({-463.66869 + easeLinear(i, 0.0, 378.32308 + 463.66869, frames)}, 0)",
),
) )
for i in range(intermediate, frames): for i in range(intermediate, frames):
yield ( yield (
@ -87,12 +93,18 @@ def introFrames(args):
"style", "style",
"opacity", "opacity",
easeInSine( easeInSine(
i-intermediate, i - intermediate,
1, 1,
-1, -1,
frames - intermediate, frames - intermediate,
), ),
), ),
(
"sparkle",
"attr",
"transform",
f"translate({-463.66869 + easeLinear(i, 0.0, 378.32308 + 463.66869, frames)}, 0)",
),
) )
# show whole image for 5 seconds # show whole image for 5 seconds

View file

@ -250,11 +250,11 @@
borderopacity="1.0" borderopacity="1.0"
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="1.5700866" inkscape:zoom="2.2664018"
inkscape:cx="1074.1445" inkscape:cx="1015.4863"
inkscape:cy="584.36266" inkscape:cy="344.81971"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer3" inkscape:current-layer="layer2"
showgrid="false" showgrid="false"
inkscape:window-width="3840" inkscape:window-width="3840"
inkscape:window-height="2052" inkscape:window-height="2052"
@ -768,7 +768,7 @@
inkscape:transform-center-y="-0.71428571"><tspan inkscape:transform-center-y="-0.71428571"><tspan
x="1060.8515" x="1060.8515"
y="792.97121" y="792.97121"
id="tspan4">$title</tspan></text><text id="tspan1">$title</tspan></text><text
xml:space="preserve" xml:space="preserve"
id="persons" id="persons"
style="font-size:53.3333px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;writing-mode:lr-tb;direction:ltr;white-space:pre;shape-inside:url(#rect3);shape-padding:1.2142;display:inline;opacity:1;fill:#ff9700" style="font-size:53.3333px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;writing-mode:lr-tb;direction:ltr;white-space:pre;shape-inside:url(#rect3);shape-padding:1.2142;display:inline;opacity:1;fill:#ff9700"
@ -778,11 +778,12 @@
inkscape:transform-center-y="0.71428571"><tspan inkscape:transform-center-y="0.71428571"><tspan
x="1082.8204" x="1082.8204"
y="832.11247" y="832.11247"
id="tspan6"><tspan id="tspan3"><tspan
style="fill:#ffffff" style="fill:#ffffff"
id="tspan5">$personnames</tspan></tspan></text><g id="sparkle"><g id="tspan2">$personnames</tspan></tspan></text><g
id="g4" id="sparkle"><g
transform="rotate(180,825.41336,820.30005)"><path id="g4"
style="fill:#23efec;fill-opacity:1;stroke:url(#linearGradient4);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Dot)" transform="rotate(180,825.41336,820.30005)"><path
d="M 495.60623,776.93821 H 864.63598" style="fill:#23efec;fill-opacity:1;stroke:url(#linearGradient4);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Dot)"
id="path1" /></g></g></g></svg> d="M 495.60623,776.93821 H 864.63598"
id="path1" /></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB