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): def introFrames(p):
move=50 move=50
nr = p['$id'];
# five initial frames # five initial frames
for i in range(0, 5): for i in range(0, 5):
yield ( yield (
('text', 'style', 'opacity', "%.4f" % 0), ('text', 'style', 'opacity', "%.4f" % 0),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % -move), ('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 # 3 Sekunde Text Fadein

View file

@ -115,9 +115,29 @@
height="1280" height="1280"
preserveAspectRatio="none" preserveAspectRatio="none"
style="image-rendering:optimizeQuality" style="image-rendering:optimizeQuality"
id="image4277" id="image0"
x="0" x="0"
y="-27.637316" /> y="-27.637316" />
<image
sodipodi:absref="/home/peter/VOC/intro-outro-generator/foss4g-2016/artwork/Panorama-v-Stadthaus-2013-02.jpg"
xlink:href="Panorama-v-Stadthaus-2013-02.jpg"
width="2220.386"
height="1110.0364"
preserveAspectRatio="none"
style="opacity:0;image-rendering:optimizeQuality"
id="image1"
x="-191.62154"
y="-33.373199" />
<image
sodipodi:absref="/home/peter/VOC/intro-outro-generator/foss4g-2016/artwork/ship.jpg"
xlink:href="ship.jpg"
width="1985.7144"
height="1116.9644"
preserveAspectRatio="none"
style="opacity:0;image-rendering:optimizeQuality"
id="image2"
x="-14.285739"
y="-39.066048" />
</g> </g>
<g <g
inkscape:groupmode="layer" inkscape:groupmode="layer"

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 45 KiB