KE artwork
This commit is contained in:
parent
48ad1ae008
commit
8a5b8cd93d
5 changed files with 4051 additions and 0 deletions
91
ke1/__init__.py
Normal file
91
ke1/__init__.py
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
|
||||||
|
from renderlib import *
|
||||||
|
from easing import *
|
||||||
|
from collections import deque
|
||||||
|
|
||||||
|
scheduleUrl = 'https://live.ber.c3voc.de/releases/kolo/schedule.xml'
|
||||||
|
|
||||||
|
# For (really) too long titles
|
||||||
|
titlemap = {
|
||||||
|
}
|
||||||
|
|
||||||
|
def introFrames(parameters):
|
||||||
|
# 8 Sekunden
|
||||||
|
|
||||||
|
frames = int(1*fps)
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('black', 'style', 'opacity', "%.4f" % easeInOutQuart(i, 1, -1, frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
frames = 6*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('black', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
)
|
||||||
|
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('black', 'style', 'opacity', "%.4f" % easeInOutQuart(i, 0, 1, frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
def outroFrames(parameters):
|
||||||
|
# 5 Sekunden
|
||||||
|
frames = 4*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('black', 'style', 'opacity', "%.4f" % 0),
|
||||||
|
)
|
||||||
|
|
||||||
|
frames = 1*fps
|
||||||
|
for i in range(0, frames):
|
||||||
|
yield (
|
||||||
|
('black', 'style', 'opacity', "%.4f" % easeInOutQuart(i, 0, 1, frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
def debug():
|
||||||
|
render(
|
||||||
|
'outro.svg',
|
||||||
|
'../outro.ts',
|
||||||
|
outroFrames
|
||||||
|
)
|
||||||
|
|
||||||
|
s1 = 'Lorem, Ipsum, Ad Dolor... '
|
||||||
|
s2 = 'Lorem, Ipsum, Ad Dolor, Sit, Nomen, Est, Omen, Urbi et Orbi... '
|
||||||
|
render(
|
||||||
|
'intro.svg',
|
||||||
|
'../intro.ts',
|
||||||
|
introFrames,
|
||||||
|
{
|
||||||
|
'$title': s1,
|
||||||
|
'$personnames': s2
|
||||||
|
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def tasks(queue, args, _id, skip):
|
||||||
|
# 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
|
||||||
|
projectname = event['title']
|
||||||
|
queue.put(Rendertask(
|
||||||
|
infile = 'intro.svg',
|
||||||
|
outfile = str(event['id'])+".ts",
|
||||||
|
sequence = introFrames,
|
||||||
|
parameters = {
|
||||||
|
'$title': event['title'],
|
||||||
|
'$personnames': event['personnames']
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
|
# place a task for the outro into the queue
|
||||||
|
queue.put(Rendertask(
|
||||||
|
infile = 'outro.svg',
|
||||||
|
outfile = 'outro.ts',
|
||||||
|
sequence = outroFrames
|
||||||
|
))
|
||||||
|
|
BIN
ke1/artwork/1-Intro-1920x1080-v01a.png
Executable file
BIN
ke1/artwork/1-Intro-1920x1080-v01a.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
BIN
ke1/artwork/3-Outro-1920x1080-v1.png
Executable file
BIN
ke1/artwork/3-Outro-1920x1080-v1.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 210 KiB |
112
ke1/artwork/intro.svg
Normal file
112
ke1/artwork/intro.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 161 KiB |
3848
ke1/artwork/outro.svg
Normal file
3848
ke1/artwork/outro.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 286 KiB |
Loading…
Add table
Reference in a new issue