added pause animation for eh15
This commit is contained in:
parent
e038a7d33f
commit
d7941fc02d
2 changed files with 120 additions and 0 deletions
|
@ -42,6 +42,29 @@ def introFrames(parameters):
|
|||
('text', 'attr', 'transform', 'translate(%.4f, 0)' % 30),
|
||||
)
|
||||
|
||||
def pauseFrames():
|
||||
# 7 Sekunden
|
||||
|
||||
# 3 Sekunde Text FadeIn
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('text','style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
|
||||
)
|
||||
|
||||
# 3 Sekunde Text FadeOut
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('text','style', 'opacity', "%.4f" % easeInCubic(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
# 1 Sekunde stehen lassen
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('text','style', 'opacity', 0),
|
||||
)
|
||||
|
||||
def debug():
|
||||
render(
|
||||
|
@ -68,6 +91,11 @@ def debug():
|
|||
}
|
||||
)
|
||||
|
||||
render('pause.svg',
|
||||
'../pause.dv',
|
||||
pauseFrames
|
||||
)
|
||||
|
||||
def tasks(queue):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events(scheduleUrl):
|
||||
|
@ -96,3 +124,10 @@ def tasks(queue):
|
|||
'$personnames': event['personnames']
|
||||
}
|
||||
))
|
||||
|
||||
# place the pause-sequence into the queue
|
||||
queue.put(Rendertask(
|
||||
infile = 'pause.svg',
|
||||
outfile = 'pause.dv',
|
||||
sequence = pauseFrames
|
||||
))
|
||||
|
|
85
eh15/artwork/pause.svg
Normal file
85
eh15/artwork/pause.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 15 KiB |
Loading…
Add table
Reference in a new issue