qtcon2016 assets (#9)
This commit is contained in:
parent
7f95b49be7
commit
e9a324965e
4 changed files with 853 additions and 0 deletions
118
qtcon2016/__init__.py
Normal file
118
qtcon2016/__init__.py
Normal file
|
@ -0,0 +1,118 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from renderlib import *
|
||||
from easing import *
|
||||
|
||||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://conf.qtcon.org/en/qtcon/public/schedule.xml'
|
||||
|
||||
titlemap = {}
|
||||
|
||||
def introFrames(p):
|
||||
move=50
|
||||
|
||||
nr = p['$id'];
|
||||
|
||||
# Show Title
|
||||
frames = 5*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('sponsors', 'style', 'opacity', 0),
|
||||
('white', 'style', 'opacity', 0),
|
||||
('layer4', 'style', 'opacity', 0),
|
||||
('layer5', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
def outroFrames(p):
|
||||
move=50
|
||||
|
||||
# Show Title
|
||||
frames = 5*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('sponsors', 'style', 'opacity', 0),
|
||||
('white', 'style', 'opacity', 0),
|
||||
('layer4', 'style', 'opacity', 0),
|
||||
('layer5', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
# Fade In Sponsor
|
||||
frames = int(fps/2)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('white', 'style', 'opacity', easeLinear(i, 0, 1, frames)),
|
||||
('sponsors', 'style', 'opacity', 0),
|
||||
('text', 'style', 'opacity', easeLinear(i, 1, 0, frames)),
|
||||
('bg', 'style', 'opacity', easeLinear(i, 1, 0, frames)),
|
||||
)
|
||||
|
||||
frames = int(2 * fps)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('white', 'style', 'opacity', 1),
|
||||
('layer5', 'style', 'opacity', 1),
|
||||
('layer4', 'style', 'opacity', 1),
|
||||
('sponsors', 'style', 'opacity', easeLinear(i, 0, 1, frames)),
|
||||
('text', 'style', 'opacity', 0),
|
||||
('bg', 'style', 'opacity',0),
|
||||
)
|
||||
|
||||
frames = int(3 * fps)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('white', 'style', 'opacity', 1),
|
||||
('layer5', 'style', 'opacity', 1),
|
||||
('layer4', 'style', 'opacity', 1),
|
||||
('sponsors', 'style', 'opacity', 1),
|
||||
('text', 'style', 'opacity', 0),
|
||||
('bg', 'style', 'opacity',0),
|
||||
)
|
||||
|
||||
def pauseFrames(p):
|
||||
# hold slide for 5s
|
||||
frames = 5*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
)
|
||||
|
||||
def debug():
|
||||
render(
|
||||
'intro.svg',
|
||||
'../intro.ts',
|
||||
introFrames,
|
||||
{
|
||||
'$id': 69,
|
||||
'$title': 'How To Make "Your Mum" Jokes Successfully',
|
||||
'$subtitle': 'But not necessarily tastefully',
|
||||
'$personnames': 'Matt Gray'
|
||||
}
|
||||
)
|
||||
|
||||
render(
|
||||
'outro.svg',
|
||||
'../outro.ts',
|
||||
outroFrames
|
||||
)
|
||||
|
||||
render(
|
||||
'pause.svg',
|
||||
'../pause.ts',
|
||||
pauseFrames
|
||||
)
|
||||
|
||||
def tasks(queue, args):
|
||||
# iterate over all events extracted from the schedule xml-export
|
||||
for event in events(scheduleUrl, titlemap):
|
||||
|
||||
# generate a task description and put them into the queue
|
||||
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']
|
||||
}
|
||||
))
|
248
qtcon2016/artwork/intro.svg
Normal file
248
qtcon2016/artwork/intro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.8 MiB |
239
qtcon2016/artwork/outro.svg
Normal file
239
qtcon2016/artwork/outro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.7 MiB |
248
qtcon2016/artwork/pause.svg
Normal file
248
qtcon2016/artwork/pause.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.8 MiB |
Loading…
Add table
Reference in a new issue