From fe5ae00f3aaf166a9b5d0d566e7365fb4fb61c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mei=C3=9Fner?= Date: Sat, 1 Oct 2022 13:26:02 +0200 Subject: [PATCH] feat: added inital bub2022 intro/outro --- bub2022/__init__.py | 111 ++ bub2022/artwork/intro.svg | 256 +++++ bub2022/artwork/outro.svg | 2219 +++++++++++++++++++++++++++++++++++++ 3 files changed, 2586 insertions(+) create mode 100644 bub2022/__init__.py create mode 100644 bub2022/artwork/intro.svg create mode 100644 bub2022/artwork/outro.svg diff --git a/bub2022/__init__.py b/bub2022/__init__.py new file mode 100644 index 0000000..5ee0b7a --- /dev/null +++ b/bub2022/__init__.py @@ -0,0 +1,111 @@ +#!/usr/bin/python3 + +from renderlib import * +from easing import * +import math + +# URL to Schedule-XML +scheduleUrl = 'https://fahrplan22.bits-und-baeume.org/bitsundbaeume/schedule/export/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 = 1*fps + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)), + ) + + frames = math.ceil(3.5*fps) + for i in range(0, frames): + yield ( + ('text', 'style', 'opacity', 1), + ) + +def pauseFrames(p): + pass + + +def debug(): + render( + 'intro.svg', + '../intro.ts', + introFrames, + { + '$id': 6526, + '$title': 'Besser steuern durch Daten? - Zur Performativität soziotechnischer Systeme und der Quantifizierung der sozialen Welt', + '$subtitle': 'foobar2342', + '$personnames': 'Judith Hartstein und Anne K. Krüger' + } + ) + render( + 'outro.svg', + '../outro.ts', + outroFrames + ) + +def tasks(queue, params, idlist, skiplist): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl): + if not (idlist==[]): + if 000000 in idlist: + print("skipping id (%s [%s])" % (event['title'], event['id'])) + continue + if int(event['id']) not in idlist: + print("skipping id (%s [%s])" % (event['title'], event['id'])) + continue + + # generate a task description and put them into the queue + if int(event['id']) not in skiplist: + 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 + if not "out" in skiplist: + queue.put(Rendertask( + infile = 'outro.svg', + outfile = 'outro.ts', + sequence = outroFrames + )) diff --git a/bub2022/artwork/intro.svg b/bub2022/artwork/intro.svg new file mode 100644 index 0000000..f56c47f --- /dev/null +++ b/bub2022/artwork/intro.svg @@ -0,0 +1,256 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + +   + $personnames + + 30. Sept. - 2. Okt. 2022Technische Uni Berlin + + + Bits & Bäume 2022 + + + + + + + + $title + $subtitle + + + diff --git a/bub2022/artwork/outro.svg b/bub2022/artwork/outro.svg new file mode 100644 index 0000000..0511e39 --- /dev/null +++ b/bub2022/artwork/outro.svg @@ -0,0 +1,2219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + +   + 30. Sept. - 2. Okt. 2022Technische Uni Berlin + bits-und-baeume.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bits & Bäume + Die Konferenz für Digitalisierungund Nachhaltigkeit + +