gpn20: add pause
This commit is contained in:
parent
e62fe25353
commit
faee47d63f
3 changed files with 6250 additions and 2 deletions
|
@ -62,6 +62,69 @@ def outroFrames(args):
|
||||||
('logo', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
|
('logo', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def pauseFrames(params):
|
||||||
|
# kringel
|
||||||
|
for frame in range(0, fps):
|
||||||
|
yield (
|
||||||
|
('pause', 'style', 'opacity', 0),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 0),
|
||||||
|
*((f'g{i}', 'style', 'opacity', int(i<=frame)) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# ease in factory
|
||||||
|
frames = int(0.5*fps)
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', 0),
|
||||||
|
('gfactoryreset', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# show factory
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', 0),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 1),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# ease out factory
|
||||||
|
frames = int(0.5*fps)
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', 0),
|
||||||
|
('gfactoryreset', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# ease in pause
|
||||||
|
frames = int(0.5*fps)
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', easeInQuad(i, 0, 1, frames)),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 0),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# show pause
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', 1),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 0),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# ease out pause
|
||||||
|
frames = int(0.5*fps)
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield(
|
||||||
|
('pause', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 0),
|
||||||
|
*((f'g{i}', 'style', 'opacity', 1) for i in range(0,26))
|
||||||
|
)
|
||||||
|
# kringel
|
||||||
|
for frame in range(0, fps):
|
||||||
|
yield (
|
||||||
|
('pause', 'style', 'opacity', 0),
|
||||||
|
('gfactoryreset', 'style', 'opacity', 0),
|
||||||
|
*((f'g{i}', 'style', 'opacity', int(i>=frame)) for i in range(0,26))
|
||||||
|
)
|
||||||
|
|
||||||
def debug():
|
def debug():
|
||||||
render(
|
render(
|
||||||
|
@ -83,10 +146,10 @@ def debug():
|
||||||
def tasks(queue, args, idlist, skiplist):
|
def tasks(queue, args, idlist, skiplist):
|
||||||
# iterate over all events extracted from the schedule xml-export
|
# iterate over all events extracted from the schedule xml-export
|
||||||
for event in events(scheduleUrl):
|
for event in events(scheduleUrl):
|
||||||
if event['room'] not in ('Medientheater', "Vortragssaal", "Blauer Salon", "Ausstellung BioMedien"):
|
if event['room'] not in ('Medientheater', "Vortragssaal", "Blauer Salon"):
|
||||||
print("skipping room %s (%s)" % (event['room'], event['title']))
|
print("skipping room %s (%s)" % (event['room'], event['title']))
|
||||||
continue
|
continue
|
||||||
if event['day'] not in ('1', '2', '3', '4'):
|
if event['day'] not in ('0', '1', '2', '3'):
|
||||||
print("skipping day %s" % (event['day']))
|
print("skipping day %s" % (event['day']))
|
||||||
continue
|
continue
|
||||||
if not (idlist==[]):
|
if not (idlist==[]):
|
||||||
|
@ -116,3 +179,12 @@ def tasks(queue, args, idlist, skiplist):
|
||||||
sequence = outroFrames
|
sequence = outroFrames
|
||||||
))
|
))
|
||||||
|
|
||||||
|
if not 'pause' in skiplist:
|
||||||
|
# place the pause-sequence into the queue
|
||||||
|
queue.put(Rendertask(
|
||||||
|
infile = 'pause.svg',
|
||||||
|
outfile = 'pause.ts',
|
||||||
|
sequence = pauseFrames
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
3088
gpn20/artwork/pause.svg
Normal file
3088
gpn20/artwork/pause.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 134 KiB |
3088
gpn20/pause.svg
Normal file
3088
gpn20/pause.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 134 KiB |
Loading…
Add table
Reference in a new issue