add pause

This commit is contained in:
Michael Reichert 2019-09-20 22:24:00 +02:00
parent 210cbfe589
commit 074e0e6c50
2 changed files with 883 additions and 0 deletions

View file

@ -51,6 +51,29 @@ def outroFrames(args):
)
def pauseFrames(args):
frames = int(3*fps) + 1
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', "%.4f" % linearFade(i, 0.0, 1.0, frames)),
)
frames = int(2*fps)
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', 1.0),
)
frames = int(3*fps)
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', "%.4f" % linearFade(i, 1.0, 0.0, frames)),
)
frames = int(2*fps)
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', 0),
)
def debug():
render(
'intro.svg',
@ -67,6 +90,11 @@ def debug():
outroFrames
)
render('pause.svg',
'../pause.ts',
pauseFrames
)
def tasks(queue, args, idlist, skiplist):
# iterate over all events extracted from the schedule xml-export