fix pause icon placement

This commit is contained in:
MaZderMind 2016-05-25 23:12:23 +02:00
parent c90f4d5acf
commit 3110c46fd0
2 changed files with 31 additions and 23 deletions

View file

@ -103,17 +103,28 @@ def introFrames(parameters):
# ) # )
def pauseFrames(parameters): def pauseFrames(parameters):
frames = 5*fps
for i in range(0, frames):
percentage = easeLinear(i, 0, 10, frames)
yield ( yield (
('glow', 'attr', 'x', '%.4f' % (-0.045 * percentage / 10 )), ('layer-icons', 'style', 'display', 'inline'),
('glow', 'attr', 'y', '%.4f' % (-0.09 * percentage / 10 )),
('glow', 'attr', 'width', '%.4f' % (1 + percentage / 10 * 0.18) ), ('eat', 'style', 'opacity', '%.4f' % 0),
('glow', 'attr', 'height', '%.4f' % (1 + percentage / 10 * 0.36) ), ('sleep', 'style', 'opacity', '%.4f' % 0),
('glowBlur', 'attr', 'stdDeviation', '%.4f' % (percentage / 10 * 19.858825)), ('code', 'style', 'opacity', '%.4f' % 0),
('repeat', 'style', 'opacity', '%.4f' % 0),
)
for icon in ('eat', 'sleep', 'code', 'repeat'):
frames = 12
for i in range(0, frames):
yield (
('eat', 'style', 'opacity', '%.4f' % 0),
('sleep', 'style', 'opacity', '%.4f' % 0),
('code', 'style', 'opacity', '%.4f' % 0),
('repeat', 'style', 'opacity', '%.4f' % 0),
(icon, 'style', 'opacity', '%.4f' % bounce(i, 0.0, 1.0, frames)),
) )
def debug(): def debug():
render( render(
'intro.svg', 'intro.svg',

View file

@ -26,8 +26,8 @@
inkscape:pageopacity="0" inkscape:pageopacity="0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="0.35" inkscape:zoom="0.35"
inkscape:cx="190.94034" inkscape:cx="-297.63109"
inkscape:cy="287.2402" inkscape:cy="281.52591"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer-icons" inkscape:current-layer="layer-icons"
showgrid="false" showgrid="false"
@ -72,10 +72,9 @@
style="display:inline"> style="display:inline">
<g <g
id="eat" id="eat"
inkscape:label="#g5170" inkscape:label="#g4171">
transform="translate(-557.14286,9.8575219e-7)">
<g <g
transform="matrix(1,0,0,-1,960.005,512.34716)" transform="matrix(1,0,0,-1,402.86214,512.34716)"
id="eat-inner"> id="eat-inner">
<g <g
id="g12" id="g12"
@ -109,11 +108,10 @@
</g> </g>
<g <g
id="code" id="code"
inkscape:label="#g5164" inkscape:label="#g4184">
transform="translate(-557.14286,-4.6350001e-6)">
<g <g
style="font-size:medium;font-family:ProstoSans-Bold;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" style="font-size:medium;font-family:ProstoSans-Bold;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1"
transform="translate(717.25155,401.37325)" transform="translate(160.10869,401.37325)"
id="code-inner"> id="code-inner">
<path <path
id="path4138" id="path4138"
@ -134,10 +132,9 @@
</g> </g>
<g <g
id="sleep" id="sleep"
inkscape:label="#g5158" inkscape:label="#g4194">
transform="translate(-557.14286,9.9999988e-7)">
<g <g
transform="translate(392.14286,238.57143)" transform="translate(-165,238.57143)"
id="sleep-inner"> id="sleep-inner">
<path <path
d="m 363.61614,205.17623 c 0,-10.968 8.891,-19.858 19.858,-19.858 10.967,0 19.858,8.891 19.858,19.858 0,10.967 -8.891,19.858 -19.858,19.858 -10.967,0 -19.858,-8.89 -19.858,-19.858 z" d="m 363.61614,205.17623 c 0,-10.968 8.891,-19.858 19.858,-19.858 10.967,0 19.858,8.891 19.858,19.858 0,10.967 -8.891,19.858 -19.858,19.858 -10.967,0 -19.858,-8.89 -19.858,-19.858 z"
@ -160,9 +157,9 @@
</g> </g>
<g <g
id="repeat" id="repeat"
inkscape:label="#g5149" inkscape:label="#g4207">
transform="translate(-557.14286,3.5071359e-6)">
<g <g
transform="translate(-557.14286,3.5071359e-6)"
id="repeat-inner"> id="repeat-inner">
<path <path
d="m 1087.366,384.80213 -353.43398,0 c -31.336,0 -56.692,25.357 -56.692,56.693 l 0,141.73303 c 0,31.336 25.357,56.693 56.693,56.693" d="m 1087.366,384.80213 -353.43398,0 c -31.336,0 -56.692,25.357 -56.692,56.693 l 0,141.73303 c 0,31.336 25.357,56.693 56.693,56.693"
@ -174,7 +171,7 @@
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1"
transform="matrix(1,0,0,-1,960.01198,512.19516)"> transform="matrix(1,0,0,-1,960.01198,512.19516)">
<polygon <polygon
points="199.117,127.119 112.765,77.256 112.765,176.973 " points="112.765,176.973 199.117,127.119 112.765,77.256 "
id="polygon16" id="polygon16"
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" /> style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" />
</g> </g>
@ -189,7 +186,7 @@
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1"
transform="matrix(1,0,0,-1,960.01198,512.19516)"> transform="matrix(1,0,0,-1,960.01198,512.19516)">
<polygon <polygon
points="-199.14,-127.453 -112.787,-77.59 -112.787,-177.307 " points="-112.787,-177.307 -199.14,-127.453 -112.787,-77.59 "
id="polygon26" id="polygon26"
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" /> style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" />
</g> </g>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB