diff --git a/gpn16/__init__.py b/gpn16/__init__.py index 1c9fb57..2a4eb79 100644 --- a/gpn16/__init__.py +++ b/gpn16/__init__.py @@ -103,17 +103,28 @@ def introFrames(parameters): # ) def pauseFrames(parameters): - frames = 5*fps - for i in range(0, frames): - percentage = easeLinear(i, 0, 10, frames) yield ( - ('glow', 'attr', 'x', '%.4f' % (-0.045 * percentage / 10 )), - ('glow', 'attr', 'y', '%.4f' % (-0.09 * percentage / 10 )), - ('glow', 'attr', 'width', '%.4f' % (1 + percentage / 10 * 0.18) ), - ('glow', 'attr', 'height', '%.4f' % (1 + percentage / 10 * 0.36) ), - ('glowBlur', 'attr', 'stdDeviation', '%.4f' % (percentage / 10 * 19.858825)), + ('layer-icons', 'style', 'display', 'inline'), + + ('eat', 'style', 'opacity', '%.4f' % 0), + ('sleep', 'style', 'opacity', '%.4f' % 0), + ('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(): render( 'intro.svg', diff --git a/gpn16/artwork/pause.svg b/gpn16/artwork/pause.svg index 2f451d6..39208bd 100644 --- a/gpn16/artwork/pause.svg +++ b/gpn16/artwork/pause.svg @@ -26,8 +26,8 @@ inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:zoom="0.35" - inkscape:cx="190.94034" - inkscape:cy="287.2402" + inkscape:cx="-297.63109" + inkscape:cy="281.52591" inkscape:document-units="px" inkscape:current-layer="layer-icons" showgrid="false" @@ -72,10 +72,9 @@ style="display:inline"> + inkscape:label="#g4171"> + inkscape:label="#g4184"> + inkscape:label="#g4194"> + inkscape:label="#g4207"> @@ -189,7 +186,7 @@ style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-opacity:1" transform="matrix(1,0,0,-1,960.01198,512.19516)">