From faee47d63f63e82482e11ffe9703491f4c7e3e7b Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Tue, 17 May 2022 15:29:54 +0200 Subject: [PATCH] gpn20: add pause --- gpn20/__init__.py | 76 +- gpn20/artwork/pause.svg | 3088 +++++++++++++++++++++++++++++++++++++++ gpn20/pause.svg | 3088 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 6250 insertions(+), 2 deletions(-) create mode 100644 gpn20/artwork/pause.svg create mode 100644 gpn20/pause.svg diff --git a/gpn20/__init__.py b/gpn20/__init__.py index dd31d68..10f8827 100644 --- a/gpn20/__init__.py +++ b/gpn20/__init__.py @@ -62,6 +62,69 @@ def outroFrames(args): ('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(): render( @@ -83,10 +146,10 @@ def debug(): def tasks(queue, args, idlist, skiplist): # iterate over all events extracted from the schedule xml-export 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'])) 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'])) continue if not (idlist==[]): @@ -116,3 +179,12 @@ def tasks(queue, args, idlist, skiplist): 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 + )) + + diff --git a/gpn20/artwork/pause.svg b/gpn20/artwork/pause.svg new file mode 100644 index 0000000..e265620 --- /dev/null +++ b/gpn20/artwork/pause.svg @@ -0,0 +1,3088 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pause + + diff --git a/gpn20/pause.svg b/gpn20/pause.svg new file mode 100644 index 0000000..e265620 --- /dev/null +++ b/gpn20/pause.svg @@ -0,0 +1,3088 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pause + +