From f010c56d16a6f28795d44059f169a7e75f6a9d22 Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Thu, 12 Nov 2015 00:29:45 +0100 Subject: [PATCH] nixcon2015: add outro --- nixcon2015/__init__.py | 38 ++++-- nixcon2015/artwork/by-sa.svg | 199 ++++++++++++++++++++++++++++ nixcon2015/artwork/outro.svg | 243 +++++++++++++++++++++++++++++++++++ 3 files changed, 469 insertions(+), 11 deletions(-) create mode 100644 nixcon2015/artwork/by-sa.svg create mode 100644 nixcon2015/artwork/outro.svg diff --git a/nixcon2015/__init__.py b/nixcon2015/__init__.py index 857bde7..70a89d4 100644 --- a/nixcon2015/__init__.py +++ b/nixcon2015/__init__.py @@ -76,15 +76,31 @@ def introFrames(params): ) def outroFrames(params): - pass + frames = 2*fps + for i in range(0, frames): + yield ( + ('layer1', 'style', 'opacity', '%.4f' % 1), + ) + frames = int(0.5*fps) + for i in range(0, frames): + opacity = 1 - easeInCubic(i, 0, 1, frames) + yield ( + ('layer1', 'style', 'opacity', '%.4f' % opacity), + ) + + frames = int(0.2 * fps) + for i in range(0, frames): + yield ( + ('layer1', 'style', 'opacity', '%.4f' % 0), + ) def debug(): - #render( - # 'outro.svg', - # '../outro.dv', - # outroFrames - #) + render( + 'outro.svg', + '../outro.dv', + outroFrames + ) render( 'intro.svg', @@ -115,8 +131,8 @@ def tasks(queue, params): )) # place a task for the outro into the queue - #queue.put(Rendertask( - # infile = 'outro.svg', - # outfile = 'outro.dv', - # sequence = outroFrames - #)) + queue.put(Rendertask( + infile = 'outro.svg', + outfile = 'outro.dv', + sequence = outroFrames + )) diff --git a/nixcon2015/artwork/by-sa.svg b/nixcon2015/artwork/by-sa.svg new file mode 100644 index 0000000..f850297 --- /dev/null +++ b/nixcon2015/artwork/by-sa.svg @@ -0,0 +1,199 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nixcon2015/artwork/outro.svg b/nixcon2015/artwork/outro.svg new file mode 100644 index 0000000..cc819f2 --- /dev/null +++ b/nixcon2015/artwork/outro.svg @@ -0,0 +1,243 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + NixCon2015 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +