diff --git a/fiffkon/__init__.py b/fiffkon/__init__.py new file mode 100644 index 0000000..e686fda --- /dev/null +++ b/fiffkon/__init__.py @@ -0,0 +1,121 @@ +#!/usr/bin/python3 + +from renderlib import * +import math + +# URL to Schedule-XML +scheduleUrl = 'http://2014.fiff.de/app/schedule.xml' + +# For (really) too long titles +titlemap = { + #708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick" +} + + +def outroFrames(p): + frames = 2*fps + for i in range(0, frames): + yield ( + ('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)), + ('plate', 'style', 'opacity', 0), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('logo', 'style', 'opacity', 1), + ('plate', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)), + ) + + frames = 2*fps + for i in range(0, frames): + yield ( + ('logo', 'style', 'opacity', 1), + ('plate', 'style', 'opacity', 1), + ) + +def introFrames(p): + frames = math.floor(1.5*fps) + for i in range(0, frames): + yield ( + ('header', 'attr', 'y', 659), + ('text', 'style', 'opacity', 0), + ) + + frames = 2*fps + for i in range(0, frames): + yield ( + ('header', 'attr', 'y', "%.4f" % easeInOutQuad(i, 659, 499-659, frames)), + ('text', 'style', 'opacity', 0), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)), + ) + + frames = math.ceil(2.5*fps) + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', 1), + ) + +def pauseFrames(p): + pass + + +def debug(): + render( + 'intro.svg', + '../intro.dv', + introFrames, + { + '$id': 6526, + '$title': 'Nachrichtendienstliche Zugriffe auf Telekommunikation und IKT-Strukuren und ihre Implikationen für individuelle und staatliche Souveränität', + '$subtitle': '', + '$personnames': 'Andy Müller-Maguhn' + } + ) + + render( + 'outro.svg', + '../outro.dv', + outroFrames + ) + + # render('pause.svg', + # '../pause.dv', + # pauseFrames + # ) + +def tasks(queue): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl): + + # generate a task description and put them into the queue + queue.put(Rendertask( + infile = 'intro.svg', + outfile = str(event['id'])+".dv", + sequence = introFrames, + parameters = { + '$id': event['id'], + '$title': event['title'], + '$subtitle': event['subtitle'], + '$personnames': event['personnames'] + } + )) + + # place a task for the outro into the queue + queue.put(Rendertask( + infile = 'outro.svg', + outfile = 'outro.dv', + sequence = outroFrames + )) + + # # place the pause-sequence into the queue + # queue.put(Rendertask( + # infile = 'pause.svg', + # outfile = 'pause.dv', + # sequence = pauseFrames + # )) diff --git a/fiffkon/artwork/BERadom.png b/fiffkon/artwork/BERadom.png new file mode 100644 index 0000000..ff0a996 Binary files /dev/null and b/fiffkon/artwork/BERadom.png differ diff --git a/fiffkon/artwork/Logo.eps b/fiffkon/artwork/Logo.eps new file mode 100644 index 0000000..04170bc Binary files /dev/null and b/fiffkon/artwork/Logo.eps differ diff --git a/fiffkon/artwork/Logo.png b/fiffkon/artwork/Logo.png new file mode 100644 index 0000000..fed798f Binary files /dev/null and b/fiffkon/artwork/Logo.png differ diff --git a/fiffkon/artwork/Logo_Huge.png b/fiffkon/artwork/Logo_Huge.png new file mode 100644 index 0000000..16af6da Binary files /dev/null and b/fiffkon/artwork/Logo_Huge.png differ diff --git a/fiffkon/artwork/Logo_big.png b/fiffkon/artwork/Logo_big.png new file mode 100644 index 0000000..85fc438 Binary files /dev/null and b/fiffkon/artwork/Logo_big.png differ diff --git a/fiffkon/artwork/by-sa.svg b/fiffkon/artwork/by-sa.svg new file mode 100644 index 0000000..f850297 --- /dev/null +++ b/fiffkon/artwork/by-sa.svg @@ -0,0 +1,199 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fiffkon/artwork/intro.svg b/fiffkon/artwork/intro.svg new file mode 100644 index 0000000..e5d1612 --- /dev/null +++ b/fiffkon/artwork/intro.svg @@ -0,0 +1,89 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + $title$personnames + diff --git a/fiffkon/artwork/outro.svg b/fiffkon/artwork/outro.svg new file mode 100644 index 0000000..39546da --- /dev/null +++ b/fiffkon/artwork/outro.svg @@ -0,0 +1,1942 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +