somewhat finished version
This commit is contained in:
parent
a47785d6d9
commit
47fe8657dd
2 changed files with 54 additions and 41 deletions
|
@ -19,34 +19,34 @@ def introFrames(args):
|
|||
)
|
||||
|
||||
# fade in logo
|
||||
# frames = 1 * 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)
|
||||
# yield (
|
||||
# (
|
||||
# "glogo",
|
||||
# "attr",
|
||||
# "transform",
|
||||
# # the easing function can’t 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)),
|
||||
# # scale in the fsck text banner behind the foreground elements
|
||||
# # target size is 5.414656 in both x and y
|
||||
# (
|
||||
# "fsck-banner",
|
||||
# "attr",
|
||||
# "transform",
|
||||
# f"matrix({size:.4f},0,0,{size:.4f},{posx:.4f},{posy:.4f})",
|
||||
# ),
|
||||
# ("title", "style", "opacity", 0),
|
||||
# ("persons", "style", "opacity", 0),
|
||||
# ("sparkle", "style", "opacity", 0),
|
||||
# )
|
||||
frames = 1 * 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)
|
||||
yield (
|
||||
(
|
||||
"glogo",
|
||||
"attr",
|
||||
"transform",
|
||||
# the easing function can’t 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)),
|
||||
# scale in the fsck text banner behind the foreground elements
|
||||
# target size is 5.414656 in both x and y
|
||||
(
|
||||
"fsck-banner",
|
||||
"attr",
|
||||
"transform",
|
||||
f"matrix({size:.4f},0,0,{size:.4f},{posx:.4f},{posy:.4f})",
|
||||
),
|
||||
("title", "style", "opacity", 0),
|
||||
("persons", "style", "opacity", 0),
|
||||
("sparkle", "style", "opacity", 0),
|
||||
)
|
||||
|
||||
frames = 1 * fps
|
||||
for i in range(0, frames):
|
||||
|
@ -71,6 +71,12 @@ def introFrames(args):
|
|||
"opacity",
|
||||
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):
|
||||
yield (
|
||||
|
@ -87,12 +93,18 @@ def introFrames(args):
|
|||
"style",
|
||||
"opacity",
|
||||
easeInSine(
|
||||
i-intermediate,
|
||||
i - intermediate,
|
||||
1,
|
||||
-1,
|
||||
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
|
||||
|
|
|
@ -250,11 +250,11 @@
|
|||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.5700866"
|
||||
inkscape:cx="1074.1445"
|
||||
inkscape:cy="584.36266"
|
||||
inkscape:zoom="2.2664018"
|
||||
inkscape:cx="1015.4863"
|
||||
inkscape:cy="344.81971"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer3"
|
||||
inkscape:current-layer="layer2"
|
||||
showgrid="false"
|
||||
inkscape:window-width="3840"
|
||||
inkscape:window-height="2052"
|
||||
|
@ -768,7 +768,7 @@
|
|||
inkscape:transform-center-y="-0.71428571"><tspan
|
||||
x="1060.8515"
|
||||
y="792.97121"
|
||||
id="tspan4">$title</tspan></text><text
|
||||
id="tspan1">$title</tspan></text><text
|
||||
xml:space="preserve"
|
||||
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"
|
||||
|
@ -778,9 +778,10 @@
|
|||
inkscape:transform-center-y="0.71428571"><tspan
|
||||
x="1082.8204"
|
||||
y="832.11247"
|
||||
id="tspan6"><tspan
|
||||
id="tspan3"><tspan
|
||||
style="fill:#ffffff"
|
||||
id="tspan5">$personnames</tspan></tspan></text><g id="sparkle"><g
|
||||
id="tspan2">$personnames</tspan></tspan></text><g
|
||||
id="sparkle"><g
|
||||
id="g4"
|
||||
transform="rotate(180,825.41336,820.30005)"><path
|
||||
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)"
|
||||
|
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Loading…
Add table
Reference in a new issue