diff --git a/guadec16/__init__.py b/guadec16/__init__.py index 805e094..e202707 100644 --- a/guadec16/__init__.py +++ b/guadec16/__init__.py @@ -39,7 +39,6 @@ def introFrames(parameters): ('longspeaker', 'style', 'opacity', "0"), ('overlay', 'style', 'opacity', "0"), ('guadeclogo', 'style', 'opacity', "0"), - ('onhold', 'style', 'opacity', "0"), ('onlinediscussion', 'style', 'opacity', "0"), ) @@ -73,15 +72,13 @@ def introFrames(parameters): ('presentedby', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames-1)), ('presentedby', 'attr', 'transform', 'translate(0, %.4f)' % easeOutQuad(i, -move, move, frames-1)), ) - # 0.2 seconds speaker/onhold text fade in + # 0.2 seconds speaker text fade in frames = int(fps/5) for i in range(0, frames): yield ( ('speaker', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames-1)), ('longspeaker', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames-1)), ('speakertranslator', 'attr', 'transform', 'translate(0, %.4f)' % easeOutQuad(i, -move, move, frames-1)), - ('onhold', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames-1)), - ('onhold', 'attr', 'transform', 'translate(0, %.4f)' % easeOutQuad(i, -move, move, frames-1)), ('onlinediscussion', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames-1)), ) @@ -92,11 +89,26 @@ def introFrames(parameters): ('title', 'style', 'opacity', "1"), ('longtitle', 'style', 'opacity', "1"), ('presentedby', 'style', 'opacity', "1"), - ('onhold', 'style', 'opacity', "1"), ('speaker', 'style', 'opacity', "1"), ('longspeaker', 'style', 'opacity', "1"), ) +def pauseFrames(p): + # pulsing on hold with 1,5 seconds interval + frames = int(1.3*fps) + for i in range(0, frames): + yield ( + ('onhold', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -0.8, frames-1)), + ) + + frames = int(1.5*fps) + for i in range(0, frames): + yield ( + ('onhold', 'style', 'opacity', "%.4f" % easeLinear(i, 0.2, 1, frames-1)), + ) + + + def outroFrames(p): # 7 seconds of slow scaling, fade to black at the end frames = 7*fps @@ -133,7 +145,7 @@ def debug(): render( 'pause.svg', '../pause.ts', - introFrames, + pauseFrames, ) render( diff --git a/guadec16/artwork/pause.svg b/guadec16/artwork/pause.svg index ffc8d60..482237f 100644 --- a/guadec16/artwork/pause.svg +++ b/guadec16/artwork/pause.svg @@ -45,17 +45,17 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.70710678" - inkscape:cx="931.22298" - inkscape:cy="513.85159" + inkscape:zoom="0.35355339" + inkscape:cx="844.1274" + inkscape:cy="328.96382" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" inkscape:window-width="1920" - inkscape:window-height="1016" + inkscape:window-height="1080" inkscape:window-x="0" - inkscape:window-y="27" - inkscape:window-maximized="1" + inkscape:window-y="0" + inkscape:window-maximized="0" fit-margin-top="5" fit-margin-left="5" fit-margin-right="5" @@ -124,10 +124,9 @@ + inkscape:label="#onhold">