From 37e2cccf91afe14d839a54811a39b106612bbc80 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 29 Sep 2016 00:32:21 +0200 Subject: [PATCH] systemd-conf-16 artwork --- systemd-conf-16/__init__.py | 145 ++++++++++++++++++ systemd-conf-16/artwork/intro.svg | 176 ++++++++++++++++++++++ systemd-conf-16/artwork/outro.svg | 237 ++++++++++++++++++++++++++++++ systemd-conf-16/artwork/pause.svg | 132 +++++++++++++++++ 4 files changed, 690 insertions(+) create mode 100644 systemd-conf-16/__init__.py create mode 100644 systemd-conf-16/artwork/intro.svg create mode 100644 systemd-conf-16/artwork/outro.svg create mode 100644 systemd-conf-16/artwork/pause.svg diff --git a/systemd-conf-16/__init__.py b/systemd-conf-16/__init__.py new file mode 100644 index 0000000..23ec2f5 --- /dev/null +++ b/systemd-conf-16/__init__.py @@ -0,0 +1,145 @@ +#!/usr/bin/python3 + +from renderlib import * +from easing import * + +# URL to Schedule-XML +scheduleUrl = 'https://cfp.systemd.io/en/systemdconf_2016/public/schedule.xml' + +# For (really) too long titles +titlemap = { + #708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick" +} + +def introFrames(params): + move=40 + + # 0.5 Seconds + frames = int(0.5*fps) + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % 0), + ('con', 'style', 'opacity', "%.4f" % 0), + ) + + # 3 Sekunde Text Fadein + frames = 3*fps + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, i, 0, 1, 2*fps)), + ('text', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 0*fps, i, -move, move, 2*fps)), + + ('con', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 1*fps, i, 0, 1, 2*fps)), + ('con', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 1*fps, i, -move, move, 2*fps)), + ) + + # 2 Sekunden stillstand + frames = 2*fps + for i in range(0, frames): + yield tuple() + + # 1 Sekunde fadeout + frames = 1*fps + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)), + ('con', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)), + ) + + # 0.5 Sekunden stillstand + frames = int(0.5*fps) + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % 0), + ('con', 'style', 'opacity', "%.4f" % 0), + ) + +def outroFrames(params): + move=50 + + # 1 Sekunden stillstand + frames = 1*fps + for i in range(0, frames): + yield ( + ('license', 'style', 'opacity', "%.4f" % 0), + ) + + # 4 Sekunde Text Fadein + frames = 4*fps + for i in range(0, frames): + yield ( + ('license', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, i, 0, 1, 2*fps)), + ('license', 'attr', 'transform', 'translate(%.4f, 0)' % easeDelay(easeOutQuad, 0*fps, i, -move, move, 2*fps)), + ) + + # 2 Sekunden stillstand + frames = 2*fps + for i in range(0, frames): + yield ( + ('license', 'style', 'opacity', "%.4f" % 1), + ) + + +def pauseFrames(params): + # 1 Sekunden fade down + frames = 1*fps + for i in range(0, frames): + yield ( + ('break', 'style', 'opacity', "%.4f" % easeLinear(i, 0.5, +0.5, frames)), + ) + + # 1 Sekunden fade up + frames = 1*fps + for i in range(0, frames): + yield ( + ('break', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -0.5, frames)), + ) + +def debug(): + # render( + # 'outro.svg', + # '../outro.ts', + # outroFrames + # ) + + render( + 'pause.svg', + '../pause.ts', + pauseFrames + ) + + # render( + # 'intro.svg', + # '../intro.ts', + # introFrames, + # { + # '$id': 904, + # '$title': 'Was ist Open Source, wie funktioniert das?', + # '$subtitle': 'Die Organisation der Open Geo- und GIS-Welt. Worauf man achten sollte.', + # '$personnames': 'Arnulf Christl, Astrid Emde, Dominik Helle, Till Adams' + # } + # ) + +def tasks(queue, params): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl, titlemap): + + # generate a task description and put them into the queue + queue.put(Rendertask( + infile = 'intro.svg', + outfile = str(event['id'])+".ts", + 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.ts', + sequence = outroFrames + )) diff --git a/systemd-conf-16/artwork/intro.svg b/systemd-conf-16/artwork/intro.svg new file mode 100644 index 0000000..58bc100 --- /dev/null +++ b/systemd-conf-16/artwork/intro.svg @@ -0,0 +1,176 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + systemd.conf 2016 + Sept. 28th - Oct. 1st 2016betahaus Berlin + + + + $title + + $personnames + + $subtitle + + diff --git a/systemd-conf-16/artwork/outro.svg b/systemd-conf-16/artwork/outro.svg new file mode 100644 index 0000000..d14c534 --- /dev/null +++ b/systemd-conf-16/artwork/outro.svg @@ -0,0 +1,237 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + systemd.conf 2016 + Sept. 28th - Oct. 1st 2016betahaus Berlin + + diff --git a/systemd-conf-16/artwork/pause.svg b/systemd-conf-16/artwork/pause.svg new file mode 100644 index 0000000..b35c129 --- /dev/null +++ b/systemd-conf-16/artwork/pause.svg @@ -0,0 +1,132 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + systemd.conf 2016 + Sept. 28th - Oct. 1st 2016betahaus Berlin + + The Stream willcontinue soon +