working on outro.added fonts
This commit is contained in:
parent
05c8e13cbe
commit
f7d4594f94
7 changed files with 47048 additions and 270 deletions
115
eh17/__init__.py
115
eh17/__init__.py
|
@ -32,7 +32,7 @@ class animate(object):
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,10 +45,10 @@ class background(animate):
|
||||||
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):
|
||||||
|
@ -60,15 +60,15 @@ class logotext(animate):
|
||||||
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)),
|
||||||
|
@ -79,14 +79,14 @@ 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]),
|
||||||
|
@ -112,18 +112,25 @@ class hasenfarbe(animate):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
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:
|
||||||
|
@ -135,64 +142,28 @@ def introFrames(args):
|
||||||
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,7 +272,7 @@ 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',
|
||||||
|
|
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