Merge a9a951670b
into 1893beda4d
This commit is contained in:
commit
8b3f72beae
5 changed files with 30242 additions and 0 deletions
125
vcfb20/__init__.py
Normal file
125
vcfb20/__init__.py
Normal file
|
@ -0,0 +1,125 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
from renderlib import *
|
||||||
|
from easing import *
|
||||||
|
import math
|
||||||
|
|
||||||
|
# URL to Schedule-XML
|
||||||
|
scheduleUrl = 'http://vcfb.de/2020/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': '',
|
||||||
|
'$personnames': 'Judith Hartstein und Anne K. Krüger'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
#render(
|
||||||
|
# 'outro.svg',
|
||||||
|
# '../outro.ts',
|
||||||
|
# outroFrames
|
||||||
|
#)
|
||||||
|
|
||||||
|
# render('pause.svg',
|
||||||
|
# '../pause.ts',
|
||||||
|
# pauseFrames
|
||||||
|
# )
|
||||||
|
|
||||||
|
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
|
||||||
|
))
|
||||||
|
|
||||||
|
# place the pause-sequence into the queue
|
||||||
|
#if not "pause" in skiplist:
|
||||||
|
# queue.put(Rendertask(
|
||||||
|
# infile = 'pause.svg',
|
||||||
|
# outfile = 'pause.ts',
|
||||||
|
# sequence = pauseFrames
|
||||||
|
# ))
|
BIN
vcfb20/artwork/Computerfont.ttf
Normal file
BIN
vcfb20/artwork/Computerfont.ttf
Normal file
Binary file not shown.
15584
vcfb20/artwork/intro.svg
Normal file
15584
vcfb20/artwork/intro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 2.1 MiB |
7907
vcfb20/artwork/outro.svg
Normal file
7907
vcfb20/artwork/outro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 942 KiB |
6626
vcfb20/artwork/pause.svg
Normal file
6626
vcfb20/artwork/pause.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 1,015 KiB |
Loading…
Add table
Reference in a new issue