diff --git a/camp1999/__init__.py b/camp1999/__init__.py new file mode 100644 index 0000000..5814392 --- /dev/null +++ b/camp1999/__init__.py @@ -0,0 +1,82 @@ +#!/usr/bin/python3 + +from renderlib import * + +def introFrames(p): + move=50 + + for t in range(0, 12): + yield ( + ('rocket', 'style', 'opacity', "%.4f" % 0), + ('year', 'style', 'opacity', "%.4f" % 0), + ('content', 'style', 'opacity', "%.4f" % 0), + ) + + for t in range(0, 5*fps): + yield ( + ('rocket', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, t, 0, 1, 3*fps)), + ('year', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 1*fps, t, 0, 1, 3*fps)), + ('year', 'attr', 'transform', "translate(%.4f, 0)" % easeDelay(easeOutQuad, 1*fps, t, -move, move, 3*fps)), + ('content', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 2*fps, t, 0, 1, 3*fps)), + ) + + for t in range(0, 1*fps): + yield ( + ('rocket', 'style', 'opacity', "%.4f" % 1), + ('year', 'style', 'opacity', "%.4f" % 1), + ('content', 'style', 'opacity', "%.4f" % 1), + ) + + for t in range(0, 4*fps): + yield ( + ('rocket', 'style', 'opacity', "%.4f" % 1), + ('year', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, t, 1, -1, 3*fps)), + ('year', 'attr', 'transform', "translate(%.4f, 0)" % easeDelay(easeOutQuad, 0*fps, t, 0, move, 3*fps)), + ('content', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 1*fps, t, 1, -1, 3*fps)), + ) + + +def outroFrames(p): + for t in range(0, 4*fps): + yield ( + ('text', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 0*fps, t, 1, -1, 3*fps)), + ('knoten', 'style', 'opacity', "%.4f" % easeDelay(easeLinear, 1*fps, t, 1, -1, 3*fps)), + ) + + for t in range(0, 1*fps): + yield ( + ('text', 'style', 'opacity', "%.4f" % 0), + ('knoten', 'style', 'opacity', "%.4f" % 0), + ) + + +def debug(): + render( + 'intro.svg', + '../intro.ts', + introFrames, + parameters={ + '$title': 'Careerpunks', + '$person': 'Dave del Torto' + } + ) + + render( + 'outro.svg', + '../outro.ts', + outroFrames + ) + +def tasks(queue): + raise NotImplementedError('call with --debug to render your intro/outro') + + +def ticket(ticket): + return Rendertask( + infile = 'intro.svg', + sequence = introFrames, + parameters = { + '$title': ticket.get('Fahrplan.Title'), + '$person': ticket.get('Fahrplan.Person_list') + } + ) diff --git a/camp1999/artwork/chaosknoten.gif b/camp1999/artwork/chaosknoten.gif new file mode 100644 index 0000000..a7e64a2 Binary files /dev/null and b/camp1999/artwork/chaosknoten.gif differ diff --git a/camp1999/artwork/intro.svg b/camp1999/artwork/intro.svg new file mode 100644 index 0000000..cd6291c --- /dev/null +++ b/camp1999/artwork/intro.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + $person$title + 1999!!! + + diff --git a/camp1999/artwork/no-rocket.gif b/camp1999/artwork/no-rocket.gif new file mode 100644 index 0000000..41eb396 Binary files /dev/null and b/camp1999/artwork/no-rocket.gif differ diff --git a/camp1999/artwork/outro.svg b/camp1999/artwork/outro.svg new file mode 100644 index 0000000..27ea0eb --- /dev/null +++ b/camp1999/artwork/outro.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + THE END!!! + + + diff --git a/camp1999/artwork/rocket.gif b/camp1999/artwork/rocket.gif new file mode 100644 index 0000000..1af8a3b Binary files /dev/null and b/camp1999/artwork/rocket.gif differ