guadec16: redo pause frame to be seamless pulsing logo

This commit is contained in:
Bastian Ilsø 2016-08-10 14:43:43 +02:00
parent 046ce1cfa3
commit 4beb262045
2 changed files with 26 additions and 15 deletions

View file

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

View file

@ -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 @@
</g>
<g
id="onhold"
inkscape:label="#onhold"
transform="translate(0,-51.382727)">
inkscape:label="#onhold">
<flowRoot
transform="matrix(1.0069294,0,0,1,4672.4721,529.55567)"
transform="matrix(1.0069294,0,0,1,4672.4721,549.52063)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:12.98549747px;line-height:125%;font-family:'Open Sans';-inkscape-font-specification:'Open Sans Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#555555;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="flowRoot7495-8-6-7"
xml:space="preserve"><flowRegion

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB