fix misuse of dict
This commit is contained in:
parent
459e2883a6
commit
b88d0ad239
1 changed files with 24 additions and 24 deletions
|
@ -80,26 +80,26 @@ def abspannFrames():
|
||||||
# 2 Sekunden Fadein Text
|
# 2 Sekunden Fadein Text
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('banderole', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames) ),
|
('banderole', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames) ),
|
||||||
('license', 'opacity', 0)
|
('license', 'opacity', 0)
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunde Fadein Lizenz-Logo
|
# 2 Sekunde Fadein Lizenz-Logo
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('banderole', 'opacity', 1),
|
('banderole', 'opacity', 1),
|
||||||
('license', 'opacity', "%.2f" % (float(i)/frames))
|
('license', 'opacity', "%.2f" % (float(i)/frames))
|
||||||
}
|
)
|
||||||
|
|
||||||
# 1 Sekunde stehen bleiben
|
# 1 Sekunde stehen bleiben
|
||||||
frames = 1*fps
|
frames = 1*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('banderole', 'opacity', 1),
|
('banderole', 'opacity', 1),
|
||||||
('license', 'opacity', 1)
|
('license', 'opacity', 1)
|
||||||
}
|
)
|
||||||
|
|
||||||
def vorspannFrames():
|
def vorspannFrames():
|
||||||
# 7 Sekunden
|
# 7 Sekunden
|
||||||
|
@ -117,32 +117,32 @@ def vorspannFrames():
|
||||||
# 1 Sekunde Fadeout Text 1
|
# 1 Sekunde Fadeout Text 1
|
||||||
frames = 1*fps
|
frames = 1*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('box', 'opacity', 1),
|
('box', 'opacity', 1),
|
||||||
('url', 'opacity', 1),
|
('url', 'opacity', 1),
|
||||||
('text1', 'opacity', "%.2f" % (1-(float(i)/frames))),
|
('text1', 'opacity', "%.2f" % (1-(float(i)/frames))),
|
||||||
('text2', 'opacity', 0)
|
('text2', 'opacity', 0)
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Text 2
|
# 2 Sekunden Text 2
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('box', 'opacity', 1),
|
('box', 'opacity', 1),
|
||||||
('url', 'opacity', 1),
|
('url', 'opacity', 1),
|
||||||
('text1', 'opacity', 0),
|
('text1', 'opacity', 0),
|
||||||
('text2', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames))
|
('text2', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames))
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden stehen bleiben
|
# 2 Sekunden stehen bleiben
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('box', 'opacity', 1),
|
('box', 'opacity', 1),
|
||||||
('url', 'opacity', 1),
|
('url', 'opacity', 1),
|
||||||
('text1', 'opacity', 0),
|
('text1', 'opacity', 0),
|
||||||
('text2', 'opacity', 1)
|
('text2', 'opacity', 1)
|
||||||
}
|
)
|
||||||
|
|
||||||
def pauseFrames():
|
def pauseFrames():
|
||||||
# 12 Sekunden
|
# 12 Sekunden
|
||||||
|
@ -150,50 +150,50 @@ def pauseFrames():
|
||||||
# 2 Sekunden Text1 stehen
|
# 2 Sekunden Text1 stehen
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', 1),
|
('text1', 'opacity', 1),
|
||||||
('text2', 'opacity', 0)
|
('text2', 'opacity', 0)
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Fadeout Text1
|
# 2 Sekunden Fadeout Text1
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', "%.2f" % (1-easeOutCubic(i, 0, 1, frames))),
|
('text1', 'opacity', "%.2f" % (1-easeOutCubic(i, 0, 1, frames))),
|
||||||
('text2', 'opacity', 0)
|
('text2', 'opacity', 0)
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Fadein Text2
|
# 2 Sekunden Fadein Text2
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', 0),
|
('text1', 'opacity', 0),
|
||||||
('text2', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames))
|
('text2', 'opacity', "%.2f" % easeOutCubic(i, 0, 1, frames))
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Text2 stehen
|
# 2 Sekunden Text2 stehen
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', 0),
|
('text1', 'opacity', 0),
|
||||||
('text2', 'opacity', 1)
|
('text2', 'opacity', 1)
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Fadeout Text2
|
# 2 Sekunden Fadeout Text2
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', 0),
|
('text1', 'opacity', 0),
|
||||||
('text2', 'opacity', "%.2f" % (1-easeOutCubic(i, 0, 1, frames)))
|
('text2', 'opacity', "%.2f" % (1-easeOutCubic(i, 0, 1, frames)))
|
||||||
}
|
)
|
||||||
|
|
||||||
# 2 Sekunden Fadein Text1
|
# 2 Sekunden Fadein Text1
|
||||||
frames = 2*fps
|
frames = 2*fps
|
||||||
for i in range(0, frames):
|
for i in range(0, frames):
|
||||||
yield {
|
yield (
|
||||||
('text1', 'opacity', "%.2f" % (easeOutCubic(i, 0, 1, frames))),
|
('text1', 'opacity', "%.2f" % (easeOutCubic(i, 0, 1, frames))),
|
||||||
('text2', 'opacity', 0)
|
('text2', 'opacity', 0)
|
||||||
}
|
)
|
||||||
|
|
||||||
cssutils.ser.prefs.lineSeparator = ' '
|
cssutils.ser.prefs.lineSeparator = ' '
|
||||||
cssutils.log.setLevel(logging.ERROR)
|
cssutils.log.setLevel(logging.ERROR)
|
||||||
|
|
Loading…
Add table
Reference in a new issue