migrade cre200 to module system
This commit is contained in:
parent
646d28d9db
commit
64d19d0bb5
4 changed files with 93 additions and 225 deletions
93
cre200/__init__.py
Normal file
93
cre200/__init__.py
Normal file
|
@ -0,0 +1,93 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
def outroFrames():
|
||||
# 8 Sekunden
|
||||
|
||||
# 1 Sekunden stehen bleiben
|
||||
frames = int(1*fps)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 1),
|
||||
('lizenz','style', 'opacity', 1),
|
||||
)
|
||||
|
||||
# 4 Sekunde Fadeout Logo
|
||||
frames = 4*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 1, -1, frames)),
|
||||
('lizenz','style', 'opacity', 1),
|
||||
)
|
||||
|
||||
# 4 Sekunde Fadeout Logo
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 0),
|
||||
('lizenz','style', 'opacity', "%.4f" % easeInCubic(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
# 3 Sekunden stehen bleiben
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 0),
|
||||
('lizenz','style', 'opacity', 0),
|
||||
)
|
||||
|
||||
def introFrames():
|
||||
# 8 Sekunden
|
||||
|
||||
# 2 Sekunden Fadein logo
|
||||
frames = int(2*fps)
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
|
||||
('text', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
# 3 Sekunden Fadein text
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 1),
|
||||
('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
|
||||
)
|
||||
|
||||
# 3 Sekunden stehen bleiben
|
||||
frames = 3*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 1),
|
||||
('text', 'style', 'opacity', 1),
|
||||
)
|
||||
|
||||
|
||||
def debug():
|
||||
render(
|
||||
'intro.svg',
|
||||
'../intro.dv',
|
||||
introFrames
|
||||
)
|
||||
|
||||
render(
|
||||
'outro.svg',
|
||||
'../outro.dv',
|
||||
outroFrames
|
||||
)
|
||||
|
||||
def tasks(queue):
|
||||
# generate a task description and put them into the queue
|
||||
queue.put((
|
||||
'intro.svg',
|
||||
"intro.dv",
|
||||
introFrames
|
||||
))
|
||||
|
||||
# place a task for the outro into the queue
|
||||
queue.put((
|
||||
'outro.svg',
|
||||
'outro.dv',
|
||||
outroFrames
|
||||
))
|
Loading…
Add table
Add a link
Reference in a new issue