working on outro.added fonts
This commit is contained in:
parent
05c8e13cbe
commit
f7d4594f94
7 changed files with 47048 additions and 270 deletions
157
eh17/__init__.py
157
eh17/__init__.py
|
@ -20,73 +20,73 @@ titlemap = {
|
||||||
|
|
||||||
|
|
||||||
class animate(object):
|
class animate(object):
|
||||||
|
|
||||||
def __init__(self, low, high, xml):
|
def __init__(self, low, high, xml):
|
||||||
self.low = low * fps
|
self.low = low * fps
|
||||||
self.high = high * fps
|
self.high = high * fps
|
||||||
self.frames = self.high - self.low
|
self.frames = self.high - self.low
|
||||||
self.xml = xml
|
self.xml = xml
|
||||||
|
|
||||||
def get(self, frame):
|
def get(self, frame):
|
||||||
|
|
||||||
if self.low <= frame <= self.high:
|
if self.low <= frame <= self.high:
|
||||||
return self.frame(frame)
|
return self.frame(frame)
|
||||||
|
|
||||||
def relframe(self,frame):
|
def relframe(self, frame):
|
||||||
return frame - self.low
|
return frame - self.low
|
||||||
|
|
||||||
|
|
||||||
class background(animate):
|
class background(animate):
|
||||||
|
|
||||||
def __init__(self, low, high, xml):
|
def __init__(self, low, high, xml):
|
||||||
animate.__init__(self, low, high, xml)
|
animate.__init__(self, low, high, xml)
|
||||||
|
|
||||||
self.pathstr = xml.find(".//*[@id='animatePath']").get('d')
|
self.pathstr = xml.find(".//*[@id='animatePath']").get('d')
|
||||||
self.path = svg.path.parse_path(self.pathstr)
|
self.path = svg.path.parse_path(self.pathstr)
|
||||||
self.init = self.path.point(0)
|
self.init = self.path.point(0)
|
||||||
|
|
||||||
def frame(self,frame):
|
def frame(self, frame):
|
||||||
p = self.path.point(self.relframe(frame) / self.frames) - self.init
|
p = self.path.point(self.relframe(frame) / self.frames) - self.init
|
||||||
return (
|
return (
|
||||||
('bgtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)), )
|
('bgtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)),)
|
||||||
|
|
||||||
|
|
||||||
class logotext(animate):
|
class logotext(animate):
|
||||||
|
|
||||||
def __init__(self, low, high, xml):
|
def __init__(self, low, high, xml):
|
||||||
animate.__init__(self, low, high, xml)
|
animate.__init__(self, low, high, xml)
|
||||||
|
|
||||||
self.pathstr = xml.find(".//*[@id='textPath']").get('d')
|
self.pathstr = xml.find(".//*[@id='textPath']").get('d')
|
||||||
self.path = svg.path.parse_path(self.pathstr)
|
self.path = svg.path.parse_path(self.pathstr)
|
||||||
self.init = self.path.point(0)
|
self.init = self.path.point(0)
|
||||||
|
|
||||||
def frame(self,frame):
|
def frame(self, frame):
|
||||||
p = self.path.point(self.relframe(frame) / self.frames) - self.init
|
p = self.path.point(self.relframe(frame) / self.frames) - self.init
|
||||||
return (
|
return (
|
||||||
('ehtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)), )
|
('ehtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)),)
|
||||||
|
|
||||||
|
|
||||||
class urldate(animate):
|
class urldate(animate):
|
||||||
|
|
||||||
def frame(self,frame):
|
def frame(self, frame):
|
||||||
return(
|
return(
|
||||||
('url', 'style', 'opacity', easeOutQuad(self.relframe(frame), 1, -1, self.frames)),
|
('url', 'style', 'opacity', easeOutQuad(self.relframe(frame), 1, -1, self.frames)),
|
||||||
('date', 'style', 'opacity', easeOutQuad(self.relframe(frame), 0, 1, self.frames)),
|
('date', 'style', 'opacity', easeOutQuad(self.relframe(frame), 0, 1, self.frames)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class hasenfarbe(animate):
|
class hasenfarbe(animate):
|
||||||
|
|
||||||
def __init__(self, low, high, xml):
|
def __init__(self, low, high, xml):
|
||||||
animate.__init__(self, low, high, xml)
|
animate.__init__(self, low, high, xml)
|
||||||
colors=['#9e00a0','#ffe72d','#ff8600','#0bc401','#d40010','#0049da']
|
colors = ['#9e00a0', '#ffe72d', '#ff8600', '#0bc401', '#d40010', '#0049da']
|
||||||
self.hasen=[]
|
self.hasen = []
|
||||||
for p in permutations(colors):
|
for p in permutations(colors):
|
||||||
self.hasen.append(p)
|
self.hasen.append(p)
|
||||||
random.shuffle(self.hasen)
|
random.shuffle(self.hasen)
|
||||||
|
|
||||||
|
|
||||||
def frame(self,frame):
|
def frame(self, frame):
|
||||||
if frame % 3 is 0:
|
if frame % 3 is 0:
|
||||||
return(
|
return(
|
||||||
('hase001', 'style', 'fill', self.hasen[frame][0]),
|
('hase001', 'style', 'fill', self.hasen[frame][0]),
|
||||||
|
@ -111,20 +111,27 @@ class hasenfarbe(animate):
|
||||||
('hase020', 'style', 'fill', self.hasen[frame][5]),
|
('hase020', 'style', 'fill', self.hasen[frame][5]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class cclogo(animate):
|
||||||
|
|
||||||
|
def frame(self, frame):
|
||||||
|
return (
|
||||||
|
('license', 'style', 'opacity', easeLinear(self.relframe(frame), 0, 1, self.frames)),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def introFrames(args):
|
def introFrames(args):
|
||||||
xml = etree.parse('eh17/artwork/intro.svg').getroot()
|
xml = etree.parse('eh17/artwork/intro.svg').getroot()
|
||||||
|
|
||||||
animations = [
|
animations = [
|
||||||
background(0,6,xml),
|
background(0, 6, xml),
|
||||||
urldate(0.5,1,xml),
|
urldate(0.5, 1, xml),
|
||||||
hasenfarbe(1,5,xml),
|
hasenfarbe(1, 5, xml),
|
||||||
logotext(4,5,xml)]
|
logotext(4, 5, xml)]
|
||||||
|
|
||||||
|
|
||||||
frames = int(6 * fps)
|
frames = int(6 * fps)
|
||||||
for frame in range(0,frames):
|
for frame in range(0, frames):
|
||||||
|
|
||||||
frameactions = ()
|
frameactions = ()
|
||||||
for a in animations:
|
for a in animations:
|
||||||
action = a.get(frame)
|
action = a.get(frame)
|
||||||
|
@ -133,66 +140,30 @@ def introFrames(args):
|
||||||
|
|
||||||
print (frameactions)
|
print (frameactions)
|
||||||
yield frameactions
|
yield frameactions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def unused():
|
|
||||||
|
|
||||||
|
|
||||||
bg_i = 0
|
|
||||||
|
|
||||||
frames = int(0.5 * fps)
|
|
||||||
for i in range(0, frames):
|
|
||||||
p = path.point(i / frames) - init
|
|
||||||
yield (
|
|
||||||
('bgtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)),
|
|
||||||
('animatePath', 'style', 'opacity', 0),
|
|
||||||
('date', 'style', 'opacity', 0),
|
|
||||||
)
|
|
||||||
bg_i += 1
|
|
||||||
|
|
||||||
frames = 3 * fps
|
|
||||||
for i in range(0, frames):
|
|
||||||
p = path.point(i / frames) - init
|
|
||||||
yield (
|
|
||||||
('bgtext', 'attr', 'transform', 'translate(%.4f, %.4f)' % (p.real, p.imag)),
|
|
||||||
)
|
|
||||||
|
|
||||||
frames = int(0.5 * fps)
|
|
||||||
for i in range(0, frames):
|
|
||||||
yield tuple()
|
|
||||||
|
|
||||||
frames = 1 * fps
|
|
||||||
for i in range(0, frames):
|
|
||||||
yield (
|
|
||||||
('url', 'style', 'opacity', easeOutQuad(i, 1, -1, frames)),
|
|
||||||
('date', 'style', 'opacity', easeOutQuad(i, 0, 1, frames)),
|
|
||||||
)
|
|
||||||
|
|
||||||
frames = int(1.5 * fps)
|
|
||||||
for i in range(0, frames):
|
|
||||||
yield (
|
|
||||||
('url', 'style', 'opacity', 0),
|
|
||||||
('date', 'style', 'opacity', 1),
|
|
||||||
('bar', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
|
||||||
('title', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# frames = 1*fps
|
|
||||||
# for i in range(0, frames):
|
|
||||||
# yield (
|
|
||||||
# )
|
|
||||||
|
|
||||||
frames = int(0.5 * fps) + 1
|
|
||||||
for i in range(0, frames):
|
|
||||||
yield (
|
|
||||||
('bar', 'style', 'opacity', 0),
|
|
||||||
('title', 'style', 'opacity', 0),
|
|
||||||
)
|
|
||||||
|
|
||||||
def outroFrames(args):
|
def outroFrames(args):
|
||||||
xml = etree.parse('eh17/artwork/outro.svg').getroot()
|
xml = etree.parse('eh17/artwork/outro.svg').getroot()
|
||||||
|
|
||||||
|
animations = [
|
||||||
|
background(0, 15, xml),
|
||||||
|
hasenfarbe(1, 5, xml),
|
||||||
|
cclogo(0.5, 2, xml)]
|
||||||
|
|
||||||
|
frames = int(14 * fps)
|
||||||
|
for frame in range(0, frames):
|
||||||
|
|
||||||
|
frameactions = ()
|
||||||
|
for a in animations:
|
||||||
|
action = a.get(frame)
|
||||||
|
if action:
|
||||||
|
frameactions += action
|
||||||
|
|
||||||
|
print (frameactions)
|
||||||
|
yield frameactions
|
||||||
|
|
||||||
|
def oldoutroFrames(args):
|
||||||
|
xml = etree.parse('eh17/artwork/outro.svg').getroot()
|
||||||
pathstr = xml.find(".//*[@id='animatePath']").get('d')
|
pathstr = xml.find(".//*[@id='animatePath']").get('d')
|
||||||
frog = xml.find(".//*[@id='animatePath']").get('d')
|
frog = xml.find(".//*[@id='animatePath']").get('d')
|
||||||
path = svg.path.parse_path(pathstr)
|
path = svg.path.parse_path(pathstr)
|
||||||
|
@ -301,12 +272,12 @@ def debug():
|
||||||
introFrames,
|
introFrames,
|
||||||
{
|
{
|
||||||
'$id': 1302,
|
'$id': 1302,
|
||||||
'$title': 'VlizedLab - Eine Open Source-\nVirtualisierungslösung für PC-Räume',
|
'$title': 'VlizedLab - Eine Open Source-Virtualisierungslösung für PC-Räume',
|
||||||
'$subtitle': 'IT Automatisierung und zentrales Management mit SALT',
|
'$subtitle': 'IT Automatisierung und zentrales Management mit SALT',
|
||||||
'$personnames': 'Thorsten Kramm',
|
'$personnames': 'Thorsten Kramm',
|
||||||
'$url':'blubb',
|
'$url':'blubb',
|
||||||
'$date':'huhu'
|
'$date':'huhu'
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
BIN
eh17/artwork/eh17-Bold.otf
Normal file
BIN
eh17/artwork/eh17-Bold.otf
Normal file
Binary file not shown.
23207
eh17/artwork/eh17-Bold.sfd
Normal file
23207
eh17/artwork/eh17-Bold.sfd
Normal file
File diff suppressed because one or more lines are too long
BIN
eh17/artwork/eh17-Regular.otf
Normal file
BIN
eh17/artwork/eh17-Regular.otf
Normal file
Binary file not shown.
23220
eh17/artwork/eh17-Regular.sfd
Normal file
23220
eh17/artwork/eh17-Regular.sfd
Normal file
File diff suppressed because one or more lines are too long
12
eh17/artwork/eh17.gpl
Normal file
12
eh17/artwork/eh17.gpl
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
GIMP Palette
|
||||||
|
Name: EH17
|
||||||
|
#
|
||||||
|
0 0 0 #000000
|
||||||
|
128 128 128 #808080
|
||||||
|
255 255 255 #FFFFFF
|
||||||
|
255 231 45 #ffe72d
|
||||||
|
255 134 0 #ff8600
|
||||||
|
212 0 16 #d40010
|
||||||
|
158 0 160 #9e00a0
|
||||||
|
0 73 218 #0049da
|
||||||
|
11 196 1 #0bc401
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 71 KiB |
Loading…
Add table
Add a link
Reference in a new issue