choose pseudo-random image for intro

This commit is contained in:
MaZderMind 2016-06-17 16:47:29 +02:00
parent a8929b5170
commit 1eca57625f
2 changed files with 27 additions and 1 deletions

View file

@ -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