pydata pause loop
This commit is contained in:
parent
a724334324
commit
e0fde53461
2 changed files with 135 additions and 0 deletions
|
@ -91,7 +91,31 @@ def outroFrames(parameters):
|
|||
('text', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
|
||||
def pauseFrames(parameters):
|
||||
frames = 10*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('pause1', 'attr', 'x', '%.4f' % easeLinear(i, -268, 1295, frames)),
|
||||
('pause1', 'style', 'opacity', 1),
|
||||
('pause2', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
frames = 10*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('pause2', 'attr', 'x', '%.4f' % easeLinear(i, -268, 1295, frames)),
|
||||
('pause2', 'style', 'opacity', 1),
|
||||
('pause1', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
def debug():
|
||||
render(
|
||||
'pause.svg',
|
||||
'../pause.dv',
|
||||
pauseFrames
|
||||
)
|
||||
|
||||
render(
|
||||
'outro.svg',
|
||||
'../outro.dv',
|
||||
|
@ -133,3 +157,10 @@ def tasks(queue, parameters):
|
|||
outfile = 'outro.dv',
|
||||
sequence = outroFrames
|
||||
))
|
||||
|
||||
# generate a task description and put it into the queue
|
||||
queue.put(Rendertask(
|
||||
infile = 'pause.svg',
|
||||
outfile = 'pause.dv',
|
||||
sequence = pauseFrames
|
||||
))
|
||||
|
|
104
pydata15/artwork/pause.svg
Normal file
104
pydata15/artwork/pause.svg
Normal file
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="1024"
|
||||
height="576"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.5 r10040"
|
||||
sodipodi:docname="pause.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.7"
|
||||
inkscape:cx="740.39927"
|
||||
inkscape:cy="256.51422"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="993"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true">
|
||||
<sodipodi:guide
|
||||
orientation="1,0"
|
||||
position="127.67857,526.07143"
|
||||
id="guide3015" />
|
||||
<sodipodi:guide
|
||||
orientation="1,0"
|
||||
position="955.71429,370"
|
||||
id="guide3011" />
|
||||
<sodipodi:guide
|
||||
orientation="0,1"
|
||||
position="363.65491,400.02041"
|
||||
id="guide4008" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-476.36218)">
|
||||
<image
|
||||
sodipodi:absref="/home/peter/AAA-VOC/intro-outro-generator/pydata15/artwork/logo.png"
|
||||
xlink:href="logo.png"
|
||||
width="524.31897"
|
||||
height="218.90848"
|
||||
id="image2998"
|
||||
x="249.84052"
|
||||
y="814.90796" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:89.88379669px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#00b1e0;fill-opacity:1;stroke:none;font-family:minecra;-inkscape-font-specification:minecra"
|
||||
x="-268.32141"
|
||||
y="652.3418"
|
||||
id="pause1"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4012"
|
||||
x="-268.32141"
|
||||
y="652.3418"
|
||||
style="fill:#00b1e0;fill-opacity:1;font-family:Sans;-inkscape-font-specification:Sans">Pause</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:89.88379669px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ec9238;fill-opacity:1;stroke:none;font-family:minecra;-inkscape-font-specification:minecra"
|
||||
x="1027.7009"
|
||||
y="652.3418"
|
||||
id="pause2"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4012-4"
|
||||
x="1027.7009"
|
||||
y="652.3418"
|
||||
style="fill:#ec9238;fill-opacity:1;font-family:Sans;-inkscape-font-specification:Sans">Pause</tspan></text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
Loading…
Add table
Reference in a new issue