diff --git a/froscon9/__init__.py b/froscon2014/__init__.py similarity index 100% rename from froscon9/__init__.py rename to froscon2014/__init__.py diff --git a/froscon9/artwork/by-nc-sa.eu.svg b/froscon2014/artwork/by-nc-sa.eu.svg similarity index 100% rename from froscon9/artwork/by-nc-sa.eu.svg rename to froscon2014/artwork/by-nc-sa.eu.svg diff --git a/froscon9/artwork/by-sa.svg b/froscon2014/artwork/by-sa.svg similarity index 100% rename from froscon9/artwork/by-sa.svg rename to froscon2014/artwork/by-sa.svg diff --git a/froscon9/artwork/intro.svg b/froscon2014/artwork/intro.svg similarity index 100% rename from froscon9/artwork/intro.svg rename to froscon2014/artwork/intro.svg diff --git a/froscon9/artwork/logo-bw.svg b/froscon2014/artwork/logo-bw.svg similarity index 100% rename from froscon9/artwork/logo-bw.svg rename to froscon2014/artwork/logo-bw.svg diff --git a/froscon9/artwork/logo.svg b/froscon2014/artwork/logo.svg similarity index 100% rename from froscon9/artwork/logo.svg rename to froscon2014/artwork/logo.svg diff --git a/froscon9/artwork/outro.svg b/froscon2014/artwork/outro.svg similarity index 100% rename from froscon9/artwork/outro.svg rename to froscon2014/artwork/outro.svg diff --git a/froscon9/artwork/overlay-1024x576.png b/froscon2014/artwork/overlay-1024x576.png similarity index 100% rename from froscon9/artwork/overlay-1024x576.png rename to froscon2014/artwork/overlay-1024x576.png diff --git a/froscon9/artwork/overlay-720x576.png b/froscon2014/artwork/overlay-720x576.png similarity index 100% rename from froscon9/artwork/overlay-720x576.png rename to froscon2014/artwork/overlay-720x576.png diff --git a/froscon9/artwork/overlay.svg b/froscon2014/artwork/overlay.svg similarity index 100% rename from froscon9/artwork/overlay.svg rename to froscon2014/artwork/overlay.svg diff --git a/froscon9/artwork/pause.svg b/froscon2014/artwork/pause.svg similarity index 100% rename from froscon9/artwork/pause.svg rename to froscon2014/artwork/pause.svg diff --git a/froscon2015/__init__.py b/froscon2015/__init__.py new file mode 100644 index 0000000..dbdb1a9 --- /dev/null +++ b/froscon2015/__init__.py @@ -0,0 +1,217 @@ +#!/usr/bin/python3 + +import svg.path +from lxml import etree +from renderlib import * +from easing import * + +# URL to Schedule-XML +scheduleUrl = 'http://programm.froscon.de/2015/schedule.xml' + +def introFrames(args): + xml = etree.parse('froscon9/artwork/intro.svg').getroot() + pathstr = xml.find(".//*[@id='animatePath']").get('d') + frog = xml.find(".//*[@id='animatePath']").get('d') + path = svg.path.parse_path(pathstr) + + init = path.point(0) + + frames = int(0.5*fps) + for i in range(0, frames): + p = path.point(i / frames) - init + yield ( + ('animatePath', 'style', 'opacity', 0), + ('date', 'style', 'opacity', 0), + ) + + frames = 3*fps + for i in range(0, frames): + p = path.point(i / frames) - init + yield ( + ('frog', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)), + ) + + frames = int(0.5*fps) + for i in range(0, frames): + yield tuple() + + frames = 1*fps + for i in range(0, frames): + yield ( + ('url', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)), + ('date', 'style', 'opacity', easeOutQuad(i, 0, 1, frames)), + ) + + frames = int(1.5*fps) + for i in range(0, frames): + yield tuple() + + frames = 1*fps + for i in range(0, frames): + yield ( + ('bar', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ('title', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ) + + frames = int(0.5*fps)+1 + for i in range(0, frames): + yield ( + ('bar', 'style', 'opacity', 0), + ('title', 'style', 'opacity', 0), + ) + +def outroFrames(args): + xml = etree.parse('froscon9/artwork/outro.svg').getroot() + pathstr = xml.find(".//*[@id='animatePath']").get('d') + frog = xml.find(".//*[@id='animatePath']").get('d') + path = svg.path.parse_path(pathstr) + + init = path.point(0) + + frames = int(0.5*fps) + for i in range(0, frames): + p = path.point(i / frames) - init + yield ( + ('animatePath', 'style', 'opacity', 0), + ('license', 'style', 'opacity', 0), + ) + + frames = 3*fps + for i in range(0, frames): + p = path.point(i / frames) - init + yield ( + ('frog', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)), + ) + + frames = int(0.5*fps)+1 + for i in range(0, frames): + yield tuple() + + frames = 1*fps + for i in range(0, frames): + yield ( + ('logo', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('logo', 'style', 'opacity', 0), + ('license', 'style', 'opacity', easeLinear(i, 0, 1, frames)), + ) + + frames = 2*fps + for i in range(0, frames): + yield tuple() + + frames = 1*fps + for i in range(0, frames): + yield ( + ('license', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('license', 'style', 'opacity', 0), + ) + +def pauseFrames(args): + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 1), + ('text2', 'style', 'opacity', 0), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ('text2', 'style', 'opacity', 0), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', easeLinear(i, 0, 1, frames)), + ) + + frames = 2*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', 1), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', 0), + ('text2', 'style', 'opacity', easeLinear(i, 1, -1, frames)), + ) + + frames = 1*fps + for i in range(0, frames): + yield ( + ('text1', 'style', 'opacity', easeLinear(i, 0, 1, frames)), + ('text2', 'style', 'opacity', 0), + ) + +def debug(): + render('intro.svg', + '../intro.dv', + introFrames, + { + '$id': 1302, + '$title': 'VlizedLab - Eine Open Source-Virtualisierungslösung für PC-Räume', + '$subtitle': 'IT Automatisierung und zentrales Management mit SALT', + '$personnames': 'Thorsten Kramm' + } + ) + + render('outro.svg', + '../outro.dv', + outroFrames + ) + + render('pause.svg', + '../pause.dv', + pauseFrames + ) + + +def tasks(queue, args): + # iterate over all events extracted from the schedule xml-export + for event in events(scheduleUrl): + if event['room'] not in ('HS 1', 'HS 2', 'HS 1/2', 'HS 3', 'HS 4', 'HS 5', 'HS 6', 'HS 7', 'HS 8'): + print("skipping room %s (%s)" % (event['room'], event['title'])) + continue + + # 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/froscon2015/artwork/by-nc-sa.eu.svg b/froscon2015/artwork/by-nc-sa.eu.svg new file mode 100644 index 0000000..76fe351 --- /dev/null +++ b/froscon2015/artwork/by-nc-sa.eu.svg @@ -0,0 +1,202 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/by-sa.svg b/froscon2015/artwork/by-sa.svg new file mode 100644 index 0000000..f850297 --- /dev/null +++ b/froscon2015/artwork/by-sa.svg @@ -0,0 +1,199 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/intro.svg b/froscon2015/artwork/intro.svg new file mode 100644 index 0000000..52b1a5a --- /dev/null +++ b/froscon2015/artwork/intro.svg @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + $title + + $personnames + + + + + + + + + + + + + + + + + http://programm.froscon.de/2015/events/$id.html 22.- 23. August 2015 + diff --git a/froscon2015/artwork/logo-bw.svg b/froscon2015/artwork/logo-bw.svg new file mode 100644 index 0000000..f30babb --- /dev/null +++ b/froscon2015/artwork/logo-bw.svg @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/logo.svg b/froscon2015/artwork/logo.svg new file mode 100644 index 0000000..a57e99c --- /dev/null +++ b/froscon2015/artwork/logo.svg @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/outro.svg b/froscon2015/artwork/outro.svg new file mode 100644 index 0000000..123746d --- /dev/null +++ b/froscon2015/artwork/outro.svg @@ -0,0 +1,584 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + 23.- 24. August 2014 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/overlay.svg b/froscon2015/artwork/overlay.svg new file mode 100644 index 0000000..76f5ffe --- /dev/null +++ b/froscon2015/artwork/overlay.svg @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/froscon2015/artwork/pause.svg b/froscon2015/artwork/pause.svg new file mode 100644 index 0000000..7fc2b1a --- /dev/null +++ b/froscon2015/artwork/pause.svg @@ -0,0 +1,479 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + Pause + + Grade + + http://programm.froscon.de/2014/events/$id.html + + + + + + + + + + + + + + +