very simple intro for DS2016
This commit is contained in:
parent
87ae30ef51
commit
192e076430
3 changed files with 12842 additions and 0 deletions
92
DS2016/__init__.py
Normal file
92
DS2016/__init__.py
Normal file
|
@ -0,0 +1,92 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from lxml import etree
|
||||
from slugify import slugify
|
||||
from renderlib import *
|
||||
from renderlib import *
|
||||
from easing import *
|
||||
|
||||
|
||||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://www.datenspuren.de/2016/fahrplan/schedule.xml'
|
||||
|
||||
# For (really) too long titles
|
||||
titlemap = {
|
||||
|
||||
}
|
||||
|
||||
def introFrames(parameters):
|
||||
frames = round(0.5*fps)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', 0),
|
||||
('title', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', "%.4f" % easeOutCubic(i, 0, 1, frames)),
|
||||
('title', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', 1),
|
||||
('title', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
|
||||
)
|
||||
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', 1),
|
||||
('title', 'style', 'opacity', 1),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', "%.4f" % easeOutCubic(i, 1, -1, frames)),
|
||||
('title', 'style', 'opacity', "%.4f" % easeInCubic(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('names', 'style', 'opacity', 0),
|
||||
('title', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
def debug():
|
||||
render('intro.svg',
|
||||
'../intro.dv',
|
||||
introFrames,
|
||||
{
|
||||
'$id': 5924,
|
||||
'$title': 'Digitale Selbstverteidigung - Wie schütze ich mich vor Überwachung?',
|
||||
'$subtitle': '',
|
||||
'$personnames': 'Chaostreff Chemnitz, Eva Olivin, Robert Verch'
|
||||
}
|
||||
)
|
||||
|
||||
# render('outro.svg',
|
||||
# '../outro.dv',
|
||||
# outroFrames
|
||||
# )
|
||||
|
||||
def tasks(queue):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events(scheduleUrl):
|
||||
# generate a task description and put them into the queue
|
||||
queue.put(Rendertask(
|
||||
infile = 'intro.svg',
|
||||
outfile = str(event['id'])+" "+slugify(event['title'])+".dv",
|
||||
sequence = introFrames,
|
||||
parameters = {
|
||||
'$id': event['id'],
|
||||
'$title': event['title'],
|
||||
'$subtitle': event['subtitle'],
|
||||
'$personnames': event['personnames']
|
||||
}
|
||||
))
|
9342
DS2016/artwork/intro.svg
Normal file
9342
DS2016/artwork/intro.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 365 KiB |
3408
DS2016/artwork/src.svg
Normal file
3408
DS2016/artwork/src.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 538 KiB |
Loading…
Add table
Reference in a new issue