an attempt was made
This commit is contained in:
parent
629bc5c543
commit
6c28dd33d0
3 changed files with 467 additions and 222 deletions
|
@ -20,6 +20,11 @@ def introFrames(args):
|
|||
# fade in title and persons
|
||||
frames = 1 * fps
|
||||
for i in range(0, frames):
|
||||
# source: matrix(3.4166273,0,0,3.4166273,-1716.8745,-2685.1066)
|
||||
# target: matrix(5.414656,0,0,5.414656,-3282.299,-4448.4489)
|
||||
size = easeOutSine(i, 3, 5.414656, frames)
|
||||
posx = easeOutSine(i, -1716.8745, -3282.299, frames)
|
||||
posy = easeOutSine(i, -2685.1066, -4448.4489, frames)
|
||||
yield (
|
||||
("title", "style", "opacity", easeOutSine(i, 0, 1, frames)),
|
||||
("persons", "style", "opacity", easeOutSine(i, 0, 1, frames)),
|
||||
|
@ -28,9 +33,17 @@ def introFrames(args):
|
|||
"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)})",
|
||||
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},0,0,{size},{posx},{posy})",
|
||||
),
|
||||
)
|
||||
|
||||
# show whole image for 5 seconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue