choose pseudo-random image for intro
This commit is contained in:
parent
a8929b5170
commit
1eca57625f
2 changed files with 27 additions and 1 deletions
|
@ -13,11 +13,17 @@ titlemap = {
|
|||
def introFrames(p):
|
||||
move=50
|
||||
|
||||
nr = p['$id'];
|
||||
|
||||
# five initial frames
|
||||
for i in range(0, 5):
|
||||
yield (
|
||||
('text', 'style', 'opacity', "%.4f" % 0),
|
||||
('text', 'attr', 'transform', 'translate(%.4f, 0)' % -move),
|
||||
|
||||
('image%u' % ((nr+0)%3), 'style', 'opacity', "%.4f" % 1),
|
||||
('image%u' % ((nr+1)%3), 'style', 'opacity', "%.4f" % 0),
|
||||
('image%u' % ((nr+2)%3), 'style', 'opacity', "%.4f" % 0),
|
||||
)
|
||||
|
||||
# 3 Sekunde Text Fadein
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue